diff options
author | Helmut Grohne <helmut@subdivi.de> | 2021-04-26 22:36:31 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2021-04-26 22:36:31 +0200 |
commit | 94ba4a08a2123bfc1b2b8709476af887e5fdb43e (patch) | |
tree | 8528848d1a0d1e83dd2f87753f4da95750b41a64 /mdbp/mmdebstrap.py | |
parent | d96bc83bf4c0faae1d38c771abc36c6eb9938e95 (diff) | |
download | mdbp-94ba4a08a2123bfc1b2b8709476af887e5fdb43e.tar.gz |
mmdebstrap: move the default mirror into argparse
Diffstat (limited to 'mdbp/mmdebstrap.py')
-rw-r--r-- | mdbp/mmdebstrap.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |