Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 176539
Collapse All | Expand All

(-)bin/repoman (-2 / +16 lines)
Lines 93-98 Link Here
93
shortmodes={"ci":"commit"}
93
shortmodes={"ci":"commit"}
94
modeshelp={
94
modeshelp={
95
"scan"   : "Scan directory tree for QA issues (default)",
95
"scan"   : "Scan directory tree for QA issues (default)",
96
"manifest" : "Generate a Manifest (fetches files if necessary)",
96
"fix"    : "Fix simple QA issues (stray digests, missing digests)",
97
"fix"    : "Fix simple QA issues (stray digests, missing digests)",
97
"full"   : "Scan directory tree for QA issues (full listing)",
98
"full"   : "Scan directory tree for QA issues (full listing)",
98
"help"   : "Show this screen",
99
"help"   : "Show this screen",
Lines 498-504 Link Here
498
499
499
def caterror(mycat):
500
def caterror(mycat):
500
	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.")
501
	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.")
501
if "--pretend" in myoptions:
502
if mymode == "manifest":
503
	pass
504
elif "--pretend" in myoptions:
502
	print green("\nRepoMan does a once-over of the neighborhood...")
505
	print green("\nRepoMan does a once-over of the neighborhood...")
503
elif quiet < 1:
506
elif quiet < 1:
504
	print green("\nRepoMan scours the neighborhood...")
507
	print green("\nRepoMan scours the neighborhood...")
Lines 722-728 Link Here
722
				return True
725
				return True
723
	return False
726
	return False
724
727
725
728
dofail = 0
726
arch_caches={}
729
arch_caches={}
727
arch_xmatch_caches = {}
730
arch_xmatch_caches = {}
728
for x in scanlist:
731
for x in scanlist:
Lines 733-738 Link Here
733
	dadded=[]
736
	dadded=[]
734
	catdir,pkgdir=x.split("/")
737
	catdir,pkgdir=x.split("/")
735
	checkdir=repodir+"/"+x
738
	checkdir=repodir+"/"+x
739
740
	if mymode == "manifest":
741
		repoman_settings["O"] = checkdir
742
		if not portage.digestgen([], repoman_settings, myportdb=portdb):
743
			print "Unable to generate manifest."
744
			dofail = 1
745
		continue
746
736
	checkdirlist=os.listdir(checkdir)
747
	checkdirlist=os.listdir(checkdir)
737
	ebuildlist=[]
748
	ebuildlist=[]
738
	for y in checkdirlist:
749
	for y in checkdirlist:
Lines 1387-1392 Link Here
1387
		stats["ebuild.allmasked"]+=1
1398
		stats["ebuild.allmasked"]+=1
1388
		fails["ebuild.allmasked"].append(x)
1399
		fails["ebuild.allmasked"].append(x)
1389
1400
1401
if mymode == "manifest":
1402
	sys.exit(dofail)
1403
1390
#Pickle and save results for instant reuse in last and lfull
1404
#Pickle and save results for instant reuse in last and lfull
1391
if os.access(portage.const.CACHE_PATH, os.W_OK):
1405
if os.access(portage.const.CACHE_PATH, os.W_OK):
1392
	for myobj, fname in (stats, "repo.stats"), (fails, "repo.fails"):
1406
	for myobj, fname in (stats, "repo.stats"), (fails, "repo.fails"):

Return to bug 176539