Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 125541 Details for
Bug 185153
repoman should do `cvs up` before checks like stray digest
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
do the "Fetching trivial updates" routine before the qa scan
trivial_updates.patch (text/plain), 3.65 KB, created by
Zac Medico
on 2007-07-21 10:43:00 UTC
(
hide
)
Description:
do the "Fetching trivial updates" routine before the qa scan
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-07-21 10:43:00 UTC
Size:
3.65 KB
patch
obsolete
>Index: bin/repoman >=================================================================== >--- bin/repoman (revision 7338) >+++ bin/repoman (revision 7339) >@@ -519,12 +519,6 @@ > > def caterror(mycat): > err(mycat+" is not an official category. Skipping QA checks in this directory.\nPlease ensure that you add "+catdir+" to "+repodir+"/profiles/categories\nif it is a new category.") >-if mymode == "manifest": >- pass >-elif "--pretend" in myoptions: >- print green("\nRepoMan does a once-over of the neighborhood...") >-elif quiet < 1: >- print green("\nRepoMan scours the neighborhood...") > > def parse_use_local_desc(mylines, usedict=None): > """returns a dict of the form {cpv:set(flags)}""" >@@ -746,6 +740,49 @@ > return True > return False > >+if mymode == "commit": >+ retval = ("","") >+ if isCvs: >+ print >+ print "Performing a " + green("cvs -n up") + \ >+ " with a little magic grep to check for updates." >+ retval = getstatusoutput("/usr/bin/cvs -n up 2>&1 | " + \ >+ "egrep '^[^\?] .*' | " + \ >+ "egrep -v '^. .*/digest-[^/]+|^cvs server: .* -- ignored$'") >+ >+ mylines = retval[1].splitlines() >+ myupdates = [] >+ for x in mylines: >+ if not x: >+ continue >+ if x[0] not in "UPMAR": # Updates,Patches,Modified,Added,Removed >+ print red("!!! Please fix the following issues reported " + \ >+ "from cvs: ")+green("(U,P,M,A,R are ok)") >+ print red("!!! Note: This is a pretend/no-modify pass...") >+ print retval[1] >+ print >+ sys.exit(1) >+ elif x[0] in "UP": >+ myupdates.append(x[2:]) >+ >+ if myupdates: >+ print green("Fetching trivial updates...") >+ if "--pretend" in myoptions: >+ print "(/usr/bin/cvs up "+" ".join(myupdates)+")" >+ retval = os.EX_OK >+ else: >+ retval = os.system("/usr/bin/cvs up " + " ".join(myupdates)) >+ if retval != os.EX_OK: >+ print "!!! cvs exited with an error. Terminating." >+ sys.exit(retval) >+ >+if mymode == "manifest": >+ pass >+elif "--pretend" in myoptions: >+ print green("\nRepoMan does a once-over of the neighborhood...") >+elif quiet < 1: >+ print green("\nRepoMan scours the neighborhood...") >+ > dofail = 0 > arch_caches={} > arch_xmatch_caches = {} >@@ -1592,45 +1629,14 @@ > print > sys.exit(1) > >- retval=["",""] > if isCvs: >- print "Performing a "+green("cvs -n up")+" with a little magic grep to check for updates." >- retval=getstatusoutput("/usr/bin/cvs -n up 2>&1 | egrep '^[^\?] .*' | egrep -v '^. .*/digest-[^/]+|^cvs server: .* -- ignored$'") >- >- mylines=retval[1].split("\n") >- myupdates=[] >- for x in mylines: >- if not x: >- continue >- if x[0] not in "UPMAR": # Updates,Patches,Modified,Added,Removed >- print red("!!! Please fix the following issues reported from cvs: ")+green("(U,P,M,A,R are ok)") >- print red("!!! Note: This is a pretend/no-modify pass...") >- print retval[1] >- print >- sys.exit(1) >- elif x[0] in ["U","P"]: >- myupdates+=[x[2:]] >- >- if myupdates: >- print green("Fetching trivial updates...") >- if "--pretend" in myoptions: >- print "(/usr/bin/cvs up "+" ".join(myupdates)+")" >- retval=0 >- else: >- retval=os.system("/usr/bin/cvs up "+" ".join(myupdates)) >- if retval!=0: >- print "!!! cvs exited with an error. Terminating." >- sys.exit(retval) >- >- if isCvs: > mycvstree=cvstree.getentries("./",recursive=1) > mychanged=cvstree.findchanged(mycvstree,recursive=1,basedir="./") > mynew=cvstree.findnew(mycvstree,recursive=1,basedir="./") > myremoved=cvstree.findremoved(mycvstree,recursive=1,basedir="./") > if not (mychanged or mynew or myremoved): >+ print green("RepoMan sez:"), "\"Doing nothing is not always good for QA.\"" > print >- print green("RepoMan sez:"), "\"Doing nothing is not always good for QA.\"\n" >- print > print "(Didn't find any changed files...)" > print > sys.exit(0)
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 185153
: 125541