summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/sets/files.py1
-rw-r--r--pym/portage/sets/security.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/sets/files.py b/pym/portage/sets/files.py
index 99d30d830..5e478fdad 100644
--- a/pym/portage/sets/files.py
+++ b/pym/portage/sets/files.py
@@ -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:
diff --git a/pym/portage/sets/security.py b/pym/portage/sets/security.py
index 3bc9cbca4..dffde9c0e 100644
--- a/pym/portage/sets/security.py
+++ b/pym/portage/sets/security.py
@@ -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