mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Allow --force ing a blacklist override, when doing a non-native sync
This commit is contained in:
parent
91c70189fd
commit
497177760b
@ -469,7 +469,8 @@ def main():
|
||||
"upload.")
|
||||
parser.add_option("-f", "--force",
|
||||
dest="force", action="store_true", default=False,
|
||||
help="Force sync over the top of Ubuntu changes.")
|
||||
help="Force sync over the top of Ubuntu changes "
|
||||
"or a fake-sync when blacklisted.")
|
||||
parser.add_option('-D', '--debian-mirror', metavar='DEBIAN_MIRROR',
|
||||
dest='debian_mirror',
|
||||
help='Preferred Debian mirror '
|
||||
@ -552,6 +553,11 @@ def main():
|
||||
Logger.error("If you think this package shouldn't be blacklisted, "
|
||||
"please file a bug explaining your reasoning and "
|
||||
"subscribe ~ubuntu-archive.")
|
||||
if options.force and not options.lp:
|
||||
Logger.warning(u"Forcing fake-sync, overriding blacklist")
|
||||
else:
|
||||
Logger.error("--force and --no-lp are required to override the "
|
||||
"blacklist, if this package needs a fakesync")
|
||||
sys.exit(1)
|
||||
|
||||
if options.lp:
|
||||
|
Loading…
x
Reference in New Issue
Block a user