From 748043b0918daf1f07f50eb1b07f433b32cba8ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Sat, 17 Oct 2015 01:08:39 +0200 Subject: [PATCH] Support ARCHIVE_URL environ var --- agetpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agetpkg b/agetpkg index 021952e..3ff7a3f 100755 --- a/agetpkg +++ b/agetpkg @@ -343,7 +343,7 @@ def parse_argv(): p_main.add_argument("-v", "--verbose", action="store_true", help="display more information") p_main.add_argument("--url", help="archive URL, default: %s" % ARCHIVE_URL, - default=ARCHIVE_URL) + default=environ.get("ARCHIVE_URL", ARCHIVE_URL)) p_main.add_argument("-t", "--timeout", default=10, help="connection timeout (10s)") p_main.add_argument("package", help="regex to match a package name") -- GitLab