From 94ba4a08a2123bfc1b2b8709476af887e5fdb43e Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 26 Apr 2021 22:36:31 +0200 Subject: mmdebstrap: move the default mirror into argparse --- mdbp/mmdebstrap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mdbp/mmdebstrap.py b/mdbp/mmdebstrap.py index 0452b45..4538067 100644 --- a/mdbp/mmdebstrap.py +++ b/mdbp/mmdebstrap.py @@ -54,6 +54,7 @@ def main() -> None: """Entry point for mdbp-mmdebstrap backend""" parser = argparse.ArgumentParser() parser.add_argument("--mirror", type=str, action="store", + default="http://deb.debian.org/debian", help="mirror url to fetch packages from") parser.add_argument("buildjson", type=buildjson) args = parser.parse_args() @@ -149,7 +150,7 @@ def main() -> None: build["output"]["directory"]]), build["distribution"], "/dev/null", - args.mirror or "http://deb.debian.org/debian", + args.mirror, ] cmd.extend(build.get("extrarepositories", ())) proc = subprocess.Popen(cmd) -- cgit v1.2.3