From a7909bd6c4d7feea0628c432a77388a8d05ba67a Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Mon, 16 Jul 2007 08:13:53 +0000 Subject: ignore already applied glsas when loading the security set svn path=/main/trunk/; revision=7275 --- pym/portage/glsa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage/glsa.py') diff --git a/pym/portage/glsa.py b/pym/portage/glsa.py index ee6343640..d8053a820 100644 --- a/pym/portage/glsa.py +++ b/pym/portage/glsa.py @@ -556,7 +556,7 @@ class Glsa: @rtype: Boolean @returns: True if the GLSA was applied, False if not """ - aList = grabfile(os.path.join(os.sep, self.config["ROOT"], CACHE_PATH.lstrip(os.sep))) + aList = grabfile(os.path.join(os.sep, self.config["ROOT"], CACHE_PATH.lstrip(os.sep), "glsa")) return (self.nr in aList) def inject(self): @@ -569,7 +569,7 @@ class Glsa: @returns: None """ if not self.isApplied(): - checkfile = open(os.path.join(os.sep, self.config["ROOT"], CACHE_PATH.lstrip(os.sep)), "a+") + checkfile = open(os.path.join(os.sep, self.config["ROOT"], CACHE_PATH.lstrip(os.sep), "glsa"), "a+") checkfile.write(self.nr+"\n") checkfile.close() return None -- cgit v1.2.3-1-g7c22