1 |
Author: zmedico |
2 |
Date: 2008-06-30 22:18:46 +0000 (Mon, 30 Jun 2008) |
3 |
New Revision: 10860 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/repoman |
7 |
Log: |
8 |
Bug #230249 - Disable the "ebuild.notadded" check when not in commit mode and |
9 |
running `svn list` and `svn status` calls in every package dir will be too |
10 |
expensive. |
11 |
|
12 |
|
13 |
Modified: main/trunk/bin/repoman |
14 |
=================================================================== |
15 |
--- main/trunk/bin/repoman 2008-06-30 21:54:20 UTC (rev 10859) |
16 |
+++ main/trunk/bin/repoman 2008-06-30 22:18:46 UTC (rev 10860) |
17 |
@@ -771,6 +771,12 @@ |
18 |
arch_xmatch_caches = {} |
19 |
shared_xmatch_caches = {"cp-list":{}} |
20 |
|
21 |
+# Disable the "ebuild.notadded" check when not in commit mode and |
22 |
+# running `svn list` and `svn status` calls in every package dir |
23 |
+# will be too expensive. |
24 |
+enable_ebuild_notadded = not \ |
25 |
+ (vcs == "svn" and repolevel < 3 and options.mode != "commit") |
26 |
+ |
27 |
for x in scanlist: |
28 |
#ebuilds and digests added to cvs respectively. |
29 |
logging.info("checking package %s" % x) |
30 |
@@ -867,7 +873,7 @@ |
31 |
if not os.path.isdir(os.path.join(checkdir, "files")): |
32 |
has_filesdir = False |
33 |
|
34 |
- if vcs: |
35 |
+ if vcs and check_ebuild_notadded: |
36 |
try: |
37 |
if vcs == "cvs": |
38 |
myf=open(checkdir+"/CVS/Entries","r") |
39 |
@@ -1070,7 +1076,7 @@ |
40 |
if stat.S_IMODE(os.stat(full_path).st_mode) & 0111: |
41 |
stats["file.executable"] += 1 |
42 |
fails["file.executable"].append(x+"/"+y+".ebuild") |
43 |
- if vcs and y not in eadded: |
44 |
+ if vcs and check_ebuild_notadded and y not in eadded: |
45 |
#ebuild not added to vcs |
46 |
stats["ebuild.notadded"]=stats["ebuild.notadded"]+1 |
47 |
fails["ebuild.notadded"].append(x+"/"+y+".ebuild") |
48 |
|
49 |
-- |
50 |
gentoo-commits@l.g.o mailing list |