_unmerge_pkgfiles: fix localunbound error
authorFabian Groffen <grobian@gentoo.org>
Tue, 30 Nov 2010 19:34:56 +0000 (20:34 +0100)
committerFabian Groffen <grobian@gentoo.org>
Tue, 30 Nov 2010 19:34:56 +0000 (20:34 +0100)
pym/portage/dbapi/vartree.py

index 3837f397323107de6170a016e4e426a63a2f9d22..c57b2c7101cc532ab6a4c0b4a68876f7d847c310 100644 (file)
@@ -1861,13 +1861,14 @@ class dblink(object):
                                                        os = portage.os
                                                        perf_md5 = portage.checksum.perform_md5
 
+                               file_data = pkgfiles[objkey]
+                               file_type = file_data[0]
+
                                # don't try to unmerge the prefix offset itself
                                if len(obj) <= len(EPREFIX) or not obj.startswith(EPREFIX):
                                        show_unmerge("---", unmerge_desc["!prefix"], file_type, obj)
                                        continue
 
-                               file_data = pkgfiles[objkey]
-                               file_type = file_data[0]
                                statobj = None
                                try:
                                        statobj = os.stat(obj)