aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-03-30 23:25:04 -0700
committerZac Medico <zmedico@gentoo.org>2021-03-30 23:26:56 -0700
commit3964690033e37c097b7ba2e207c0962144761757 (patch)
tree4c9cbc1148704970f17179a509420d7a4ba5cb29
parentrepoman: Update for a repoman-3.0.3 release (diff)
downloadportage-3964690033e37c097b7ba2e207c0962144761757.tar.gz
portage-3964690033e37c097b7ba2e207c0962144761757.tar.bz2
portage-3964690033e37c097b7ba2e207c0962144761757.zip
repoman: correct parse_args local sys.argv reference
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--repoman/lib/repoman/argparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/repoman/lib/repoman/argparser.py b/repoman/lib/repoman/argparser.py
index 6d545ccca..47215693c 100644
--- a/repoman/lib/repoman/argparser.py
+++ b/repoman/lib/repoman/argparser.py
@@ -1,5 +1,5 @@
# repoman: Argument parser
-# Copyright 2007-2019 Gentoo Authors
+# Copyright 2007-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
"""This module contains functions used in Repoman to parse CLI arguments."""
@@ -222,7 +222,7 @@ def parse_args(argv, repoman_default_opts):
if not opts.ignore_default_opts:
default_opts = util.shlex_split(repoman_default_opts)
if default_opts:
- opts = parser.parse_args(default_opts + sys.argv[1:])
+ opts = parser.parse_args(default_opts + argv[1:])
args = []
if opts.mode is not None: