fix missing import, default value for value in case we try to .join on a variable...
authorAlec Warner <antarus@gentoo.org>
Sun, 22 Jul 2007 22:24:30 +0000 (22:24 -0000)
committerAlec Warner <antarus@gentoo.org>
Sun, 22 Jul 2007 22:24:30 +0000 (22:24 -0000)
svn path=/main/trunk/; revision=7362

pym/portage/sets/files.py
pym/portage/sets/security.py

index 99d30d8303b2e99e9e0d081b4c995f2578a23163..5e478fdada0271142298e2714d8f8faf0a77964b 100644 (file)
@@ -20,6 +20,7 @@ class StaticFileSet(EditablePackageSet):
                self.description = "Package set loaded from file %s" % self._filename
                metadata = grabfile(self._filename + ".metadata")
                key = None
+               value = []
                for line in metadata:
                        line = line.strip()
                        if len(line) == 0 and key != None:
index 3bc9cbca4862e5a489052a1b639b3f224c0ad2dc..dffde9c0e9ed26a9ef7f08963fa967ac01b59b43 100644 (file)
@@ -3,7 +3,7 @@
 # $Id$
 
 import portage.glsa as glsa
-from portage.util import grabfile
+from portage.util import grabfile, write_atomic
 from portage.const import CACHE_PATH
 import os