Lines 62-67
Link Here
|
62 |
"changelog.notadded","ebuild.notadded","digest.notadded", |
62 |
"changelog.notadded","ebuild.notadded","digest.notadded", |
63 |
"ebuild.disjointed","digest.disjointed", |
63 |
"ebuild.disjointed","digest.disjointed", |
64 |
"digest.unmatch", |
64 |
"digest.unmatch", |
|
|
65 |
"file.perms", "ebuild.perms", |
65 |
"DEPEND.bad","RDEPEND.bad","PDEPEND.bad", |
66 |
"DEPEND.bad","RDEPEND.bad","PDEPEND.bad", |
66 |
"DEPEND.badmasked","RDEPEND.badmasked","PDEPEND.badmasked", |
67 |
"DEPEND.badmasked","RDEPEND.badmasked","PDEPEND.badmasked", |
67 |
"DEPEND.badindev","RDEPEND.badindev","PDEPEND.badindev", |
68 |
"DEPEND.badindev","RDEPEND.badindev","PDEPEND.badindev", |
Lines 89-94
Link Here
|
89 |
"DEPEND.badindev","RDEPEND.badindev","PDEPEND.badindev", |
90 |
"DEPEND.badindev","RDEPEND.badindev","PDEPEND.badindev", |
90 |
"DEPEND.badmaskedindev","RDEPEND.badmaskedindev","PDEPEND.badmaskedindev", |
91 |
"DEPEND.badmaskedindev","RDEPEND.badmaskedindev","PDEPEND.badmaskedindev", |
91 |
"IUSE.invalid", |
92 |
"IUSE.invalid", |
|
|
93 |
"file.perms", |
92 |
"ebuild.minorsyn", |
94 |
"ebuild.minorsyn", |
93 |
"ebuild.badheader", |
95 |
"ebuild.badheader", |
94 |
"metadata.missing", |
96 |
"metadata.missing", |
Lines 112-117
Link Here
|
112 |
"digest.notadded":"Digests that exist but have not been added to cvs", |
114 |
"digest.notadded":"Digests that exist but have not been added to cvs", |
113 |
"digest.unmatch":"Digests which are incomplete (please check if your USE/ARCH includes all files)", |
115 |
"digest.unmatch":"Digests which are incomplete (please check if your USE/ARCH includes all files)", |
114 |
"ebuild.notadded":"Ebuilds that exist but have not been added to cvs", |
116 |
"ebuild.notadded":"Ebuilds that exist but have not been added to cvs", |
|
|
117 |
"file.perms":"Files shouldn't have executable bits set", |
118 |
"ebuild.perms":"Ebuilds cannot have executable bits set", |
115 |
"changelog.notadded":"ChangeLogs that exist but have not been added to cvs", |
119 |
"changelog.notadded":"ChangeLogs that exist but have not been added to cvs", |
116 |
"KEYWORDS.missing":"Ebuilds that have a missing KEYWORDS variable", |
120 |
"KEYWORDS.missing":"Ebuilds that have a missing KEYWORDS variable", |
117 |
"LICENSE.missing":"Ebuilds that have a missing LICENSE variable", |
121 |
"LICENSE.missing":"Ebuilds that have a missing LICENSE variable", |
Lines 571-576
Link Here
|
571 |
if os.path.exists(checkdir+"/files"): |
575 |
if os.path.exists(checkdir+"/files"): |
572 |
filesdirlist=os.listdir(checkdir+"/files") |
576 |
filesdirlist=os.listdir(checkdir+"/files") |
573 |
for y in filesdirlist: |
577 |
for y in filesdirlist: |
|
|
578 |
fstat=os.stat(checkdir+"/files/"+y)[0] |
579 |
if S_ISREG(fstat): |
580 |
if fstat & 0x0248: |
581 |
stats["file.perms"] += 1 |
582 |
fails["file.perms"].append(x+"/files/"+y) |
583 |
elif S_ISDIR(fstat): |
584 |
stack=[checkdir+"/files/"+y] |
585 |
while stack: |
586 |
e=stack.pop() |
587 |
fstat=os.stat(e)[0] |
588 |
if S_ISREG(fstat): |
589 |
if fstat & 0x0248: |
590 |
stats["file.perms"] += 1 |
591 |
fails["file.perms"].append(e) |
592 |
if S_ISDIR(fstat) and e[-3:] != "CVS": |
593 |
for x in os.listdir(e): |
594 |
stack.append(e+"/"+x) |
595 |
|
574 |
if y[:7]=="digest-": |
596 |
if y[:7]=="digest-": |
575 |
if y[7:] not in dadded: |
597 |
if y[7:] not in dadded: |
576 |
#digest not added to cvs |
598 |
#digest not added to cvs |
Lines 624-629
Link Here
|
624 |
|
646 |
|
625 |
arch_caches={} |
647 |
arch_caches={} |
626 |
for y in ebuildlist: |
648 |
for y in ebuildlist: |
|
|
649 |
if os.stat(checkdir+"/"+y+".ebuild")[0] & 0x0248: |
650 |
stats["ebuild.perms"] += 1 |
651 |
fails["ebuild.perms"].append(x+"/"+y+".ebuild") |
652 |
|
627 |
if y not in eadded: |
653 |
if y not in eadded: |
628 |
#ebuild not added to cvs |
654 |
#ebuild not added to cvs |
629 |
stats["ebuild.notadded"]=stats["ebuild.notadded"]+1 |
655 |
stats["ebuild.notadded"]=stats["ebuild.notadded"]+1 |