[matter] add support for --sync-best-effort

This commit is contained in:
Fabio Erculiani
2013-01-06 09:54:12 +00:00
parent aaa0074e7d
commit 8d110732d3

View File

@@ -55,7 +55,7 @@ def matter_main(binary_pms, nsargs, cwd, specs):
# sync portage
if nsargs.sync:
_rc = PackageBuilder.sync()
if _rc != 0:
if _rc != 0 and not nsargs.sync_best_effort:
raise SystemExit(_teardown(_rc))
exit_st = 0
@@ -302,6 +302,12 @@ Available Binary PMSs:
help="sync Portage tree, and attached overlays, before starting.",
action="store_true")
parser.add_argument(
"--sync-best-effort", default=False,
help="sync Portage tree and attached overlays, as --sync, but do "
"not exit if sync fails.",
action="store_true")
parser.add_argument(
"--disable-preserved-libs",
dest="disable_preserved_libs", default=False,