summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-30 23:11:02 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-30 23:11:02 +0000
commita0feb24525d2ed77c2c15e3ba468ea2e6b62dadb (patch)
tree969a0e23d5118bb9bc13ff6bd50a8616ce5913e5 /bin/egencache
parentBug #286895 - Generate an eerror message when a directory blocks merge (diff)
downloadportage-multirepo-a0feb24525d2ed77c2c15e3ba468ea2e6b62dadb.tar.gz
portage-multirepo-a0feb24525d2ed77c2c15e3ba468ea2e6b62dadb.tar.bz2
portage-multirepo-a0feb24525d2ed77c2c15e3ba468ea2e6b62dadb.zip
Add --tolerant option (already in use on master rsync mirror), requested by
robbat2. svn path=/main/trunk/; revision=14469
Diffstat (limited to 'bin/egencache')
-rwxr-xr-xbin/egencache5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/egencache b/bin/egencache
index 69a41fde..64429296 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -67,6 +67,9 @@ def parse_args(args):
action="store_true",
help="enable rsync stat collision workaround " + \
"for bug 139134 (use with --update)")
+ parser.add_option("--tolerant",
+ action="store_true",
+ help="exit successfully if only minor errors occurred")
parser.add_option("--ignore-default-opts",
action="store_true",
help="do not use the EGENCACHE_DEFAULT_OPTS environment variable")
@@ -343,6 +346,8 @@ def egencache_main(args):
max_load=options.load_average,
rsync=options.rsync)
gen_cache.run()
+ if options.tolerant:
+ return os.EX_OK
return gen_cache.returncode
if __name__ == "__main__":