1 |
Author: zmedico |
2 |
Date: 2009-09-30 23:11:02 +0000 (Wed, 30 Sep 2009) |
3 |
New Revision: 14469 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/egencache |
7 |
main/trunk/man/egencache.1 |
8 |
Log: |
9 |
Add --tolerant option (already in use on master rsync mirror), requested by |
10 |
robbat2. |
11 |
|
12 |
|
13 |
Modified: main/trunk/bin/egencache |
14 |
=================================================================== |
15 |
--- main/trunk/bin/egencache 2009-09-30 06:19:49 UTC (rev 14468) |
16 |
+++ main/trunk/bin/egencache 2009-09-30 23:11:02 UTC (rev 14469) |
17 |
@@ -67,6 +67,9 @@ |
18 |
action="store_true", |
19 |
help="enable rsync stat collision workaround " + \ |
20 |
"for bug 139134 (use with --update)") |
21 |
+ parser.add_option("--tolerant", |
22 |
+ action="store_true", |
23 |
+ help="exit successfully if only minor errors occurred") |
24 |
parser.add_option("--ignore-default-opts", |
25 |
action="store_true", |
26 |
help="do not use the EGENCACHE_DEFAULT_OPTS environment variable") |
27 |
@@ -343,6 +346,8 @@ |
28 |
max_load=options.load_average, |
29 |
rsync=options.rsync) |
30 |
gen_cache.run() |
31 |
+ if options.tolerant: |
32 |
+ return os.EX_OK |
33 |
return gen_cache.returncode |
34 |
|
35 |
if __name__ == "__main__": |
36 |
|
37 |
Modified: main/trunk/man/egencache.1 |
38 |
=================================================================== |
39 |
--- main/trunk/man/egencache.1 2009-09-30 06:19:49 UTC (rev 14468) |
40 |
+++ main/trunk/man/egencache.1 2009-09-30 23:11:02 UTC (rev 14469) |
41 |
@@ -54,6 +54,11 @@ |
42 |
(see \fBbug 139134\fR). It's not needed with \fBgit\fR(1) since that uses a |
43 |
more thorough mechanism which allows it to detect changed inode numbers |
44 |
(described in \fIracy-git.txt\fR in the git technical docs). |
45 |
+.TP |
46 |
+.BR "\-\-tolerant" |
47 |
+Exit successfully if only minor errors occurred, such as skipped cache |
48 |
+updates due to ebuilds that either fail to source or are not sourced |
49 |
+due to invalid Manifest entries. |
50 |
.SH "ENVIRONMENT OPTIONS" |
51 |
.TP |
52 |
\fBEGENCACHE_DEFAULT_OPTS\fR |