From a0feb24525d2ed77c2c15e3ba468ea2e6b62dadb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 30 Sep 2009 23:11:02 +0000 Subject: [PATCH] Add --tolerant option (already in use on master rsync mirror), requested by robbat2. svn path=/main/trunk/; revision=14469 --- bin/egencache | 5 +++++ man/egencache.1 | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/bin/egencache b/bin/egencache index 69a41fde6..64429296d 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__": diff --git a/man/egencache.1 b/man/egencache.1 index dbcc44e4b..d0bd1014a 100644 --- a/man/egencache.1 +++ b/man/egencache.1 @@ -54,6 +54,11 @@ This option should only be needed for distribution via something like (see \fBbug 139134\fR). It's not needed with \fBgit\fR(1) since that uses a more thorough mechanism which allows it to detect changed inode numbers (described in \fIracy-git.txt\fR in the git technical docs). +.TP +.BR "\-\-tolerant" +Exit successfully if only minor errors occurred, such as skipped cache +updates due to ebuilds that either fail to source or are not sourced +due to invalid Manifest entries. .SH "ENVIRONMENT OPTIONS" .TP \fBEGENCACHE_DEFAULT_OPTS\fR -- 2.26.2