summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-11-09 15:38:48 +0000
committerMarius Mauch <genone@gentoo.org>2007-11-09 15:38:48 +0000
commitd042fff18f2b7621dc0ec11c57e9c5b1936c8ca2 (patch)
tree902329b6b4a82924e214decc2af127c025f9fc60 /bin/glsa-check
parentMove glsa-check from gentoolkit into portage so the gentoolkit version can be... (diff)
downloadportage-idfetch-d042fff18f2b7621dc0ec11c57e9c5b1936c8ca2.tar.gz
portage-idfetch-d042fff18f2b7621dc0ec11c57e9c5b1936c8ca2.tar.bz2
portage-idfetch-d042fff18f2b7621dc0ec11c57e9c5b1936c8ca2.zip
move checkfile parsing into its own function
svn path=/main/trunk/; revision=8479
Diffstat (limited to 'bin/glsa-check')
-rw-r--r--bin/glsa-check6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/glsa-check b/bin/glsa-check
index d79dda6f..8d955526 100644
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -126,15 +126,11 @@ from portage.glsa import *
vardb = portage.db[portage.settings["ROOT"]]["vartree"].dbapi
portdb = portage.db["/"]["porttree"].dbapi
-checkfile = os.path.join(portage.settings["ROOT"], CACHE_PATH.lstrip(os.sep), "glsa")
# build glsa lists
completelist = get_glsa_list(portage.settings)
-if os.access(checkfile, os.R_OK):
- checklist = [line.strip() for line in open(checkfile, "r").readlines()]
-else:
- checklist = []
+checklist = get_applied_glsas(portage.settings)
todolist = [e for e in completelist if e not in checklist]
glsalist = []