aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-06-20 02:02:55 -0700
committerZac Medico <zmedico@gentoo.org>2012-06-20 02:02:55 -0700
commit217710df4570af5c36a53c144647e0d95c4ff2a8 (patch)
treef1b1a1807d487135bf7dfe0e56356d7238b113d0 /pym/portage/xpak.py
parentAtom: cleanup str()/unicode() usage (diff)
downloadportage-217710df4570af5c36a53c144647e0d95c4ff2a8.tar.gz
portage-217710df4570af5c36a53c144647e0d95c4ff2a8.tar.bz2
portage-217710df4570af5c36a53c144647e0d95c4ff2a8.zip
ResolverPlayground: support binary packages
Diffstat (limited to 'pym/portage/xpak.py')
-rw-r--r--pym/portage/xpak.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/xpak.py b/pym/portage/xpak.py
index 32623263e..73f84ab75 100644
--- a/pym/portage/xpak.py
+++ b/pym/portage/xpak.py
@@ -324,7 +324,7 @@ class tbz2(object):
"""
self.scan() # Don't care about condition... We'll rewrite the data anyway.
- if break_hardlinks and self.filestat.st_nlink > 1:
+ if break_hardlinks and self.filestat and self.filestat.st_nlink > 1:
tmp_fname = "%s.%d" % (self.file, os.getpid())
shutil.copyfile(self.file, tmp_fname)
try: