Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 67838 Details for
Bug 81960
glsa-check should check that data files are there
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for glsa-check to check for timestamp.chk
2005-09-07.diff (text/plain), 1.58 KB, created by
Michaelian Ennis
on 2005-09-07 09:36:16 UTC
(
hide
)
Description:
Patch for glsa-check to check for timestamp.chk
Filename:
MIME Type:
Creator:
Michaelian Ennis
Created:
2005-09-07 09:36:16 UTC
Size:
1.58 KB
patch
obsolete
>--- /usr/bin/glsa-check 2005-06-12 16:25:46.000000000 -0400 >+++ glsa-check 2005-09-07 12:22:21.000000000 -0400 >@@ -6,6 +6,7 @@ > import os,string,sys > sys.path.insert(0, "/usr/lib/gentoolkit/pym") > sys.path.insert(0, "/usr/lib/portage/pym") >+from portage_util import grabfile > from output import * > from getopt import getopt,GetoptError > >@@ -41,7 +42,7 @@ > args, params = getopt(sys.argv[1:], "dplfchinvt", \ > ["dump", "print", "list", "pretend", "fix", "inject", "help", "info", "version", "test", "nocolor"]) > args = [a for a,b in args] >- >+ > for option in ["--nocolor", "-n"]: > if option in args: > nocolor() >@@ -60,13 +61,15 @@ > elif len(args) > 1: > print "please use only one command per call" > mode = "help" >+ >+ > else: > # in what mode are we ? > args = args[0] > for m in optionmap: > if args in [o for o in m[:-1]]: > mode = m[1][2:] >- >+ > except GetoptError, e: > print "unknown option given:", e > mode = "help" >@@ -98,6 +101,7 @@ > print > sys.exit(1) > >+ > # we need root priviledges for write access > if mode in ["fix", "inject"] and os.geteuid() != 0: > print >@@ -119,6 +123,17 @@ > > glsaconfig = checkconfig(portage.config(clone=portage.settings)) > >+# check that there is a glsa list >+glsatimestampfile = glsaconfig["GLSA_DIR"]+"/timestamp.chk" >+if os.path.exists(glsatimestampfile): >+ content=portage.grabfile(glsatimestampfile) >+else : >+ print >+ print red("This tool needs to have a current GLSA list.") >+ print "Please emerge sync to obtain the latest list" >+ print >+ sys.exit(0) >+ > # build glsa lists > completelist = get_glsa_list(glsaconfig["GLSA_DIR"], glsaconfig) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 81960
: 67838