1 |
Author: zmedico |
2 |
Date: 2009-10-06 06:10:07 +0000 (Tue, 06 Oct 2009) |
3 |
New Revision: 14500 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/repoman |
7 |
main/trunk/man/repoman.1 |
8 |
Log: |
9 |
Add a 'digest.missing' check, for cases like mythtv where the eclass has |
10 |
modified the SRC_URI and now the Manifest has missing digests. Thanks to |
11 |
Brian Harring for the suggestion. |
12 |
|
13 |
|
14 |
Modified: main/trunk/bin/repoman |
15 |
=================================================================== |
16 |
--- main/trunk/bin/repoman 2009-10-06 05:45:55 UTC (rev 14499) |
17 |
+++ main/trunk/bin/repoman 2009-10-06 06:10:07 UTC (rev 14500) |
18 |
@@ -314,7 +314,9 @@ |
19 |
"RDEPEND.implicit":"RDEPEND is unset in the ebuild which triggers implicit RDEPEND=$DEPEND assignment", |
20 |
"RDEPEND.suspect":"RDEPEND contains a package that usually only belongs in DEPEND.", |
21 |
"RESTRICT.invalid":"This ebuild contains invalid RESTRICT values.", |
22 |
- "digestentry.unused":"Some files listed in the Manifest aren't referenced in SRC_URI", |
23 |
+ "digest.assumed":"Existing digest must be assumed correct (Package level only)", |
24 |
+ "digest.missing":"Some files listed in SRC_URI aren't referenced in the Manifest", |
25 |
+ "digest.unused":"Some files listed in the Manifest aren't referenced in SRC_URI", |
26 |
"ebuild.nostable":"There are no ebuilds that are marked as stable for your ARCH", |
27 |
"ebuild.allmasked":"All ebuilds are masked for this package (Package level only)", |
28 |
"ebuild.majorsyn":"This ebuild has a major syntax error that may cause the ebuild to fail partially or fully", |
29 |
@@ -336,7 +338,8 @@ |
30 |
qawarnings = set(( |
31 |
"changelog.missing", |
32 |
"changelog.notadded", |
33 |
-"digestentry.unused", |
34 |
+"digest.assumed", |
35 |
+"digest.unused", |
36 |
"ebuild.notadded", |
37 |
"ebuild.nostable", |
38 |
"ebuild.allmasked", |
39 |
@@ -1094,8 +1097,12 @@ |
40 |
myfiles_all = set(myfiles_all) |
41 |
for entry in mydigests: |
42 |
if entry not in myfiles_all: |
43 |
- stats["digestentry.unused"] += 1 |
44 |
- fails["digestentry.unused"].append(checkdir+"::"+entry) |
45 |
+ stats["digest.unused"] += 1 |
46 |
+ fails["digest.unused"].append(checkdir+"::"+entry) |
47 |
+ for entry in myfiles_all: |
48 |
+ if entry not in mydigests: |
49 |
+ stats["digest.missing"] += 1 |
50 |
+ fails["digest.missing"].append(checkdir+"::"+entry) |
51 |
del myfiles_all |
52 |
|
53 |
if os.path.exists(checkdir+"/files"): |
54 |
|
55 |
Modified: main/trunk/man/repoman.1 |
56 |
=================================================================== |
57 |
--- main/trunk/man/repoman.1 2009-10-06 05:45:55 UTC (rev 14499) |
58 |
+++ main/trunk/man/repoman.1 2009-10-06 06:10:07 UTC (rev 14500) |
59 |
@@ -216,6 +216,12 @@ |
60 |
.B digest.assumed |
61 |
Existing digest must be assumed correct (Package level only) |
62 |
.TP |
63 |
+.B digest.missing |
64 |
+Some files listed in SRC_URI aren't referenced in the Manifest |
65 |
+.TP |
66 |
+.B digest.unused |
67 |
+Some files listed in the Manifest aren't referenced in SRC_URI |
68 |
+.TP |
69 |
.B ebuild.allmasked |
70 |
All ebuilds are masked for this package (Package level only) |
71 |
.TP |