summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2010-08-10 13:31:01 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2010-08-10 13:31:01 +0200
commit3a35f9edf51a1b23fc6598ca491b2de4bd8eda9b (patch)
treef5fc8431f9f78ad3040e64772b11a9374cab77ae
parentd98955d508b3541ec80b8cbbd8a315fe349d18b0 (diff)
downloadfedora-packager-3a35f9edf51a1b23fc6598ca491b2de4bd8eda9b.zip
fedora-packager-3a35f9edf51a1b23fc6598ca491b2de4bd8eda9b.tar.gz
fedora-packager-3a35f9edf51a1b23fc6598ca491b2de4bd8eda9b.tar.xz
Refactoring: Use module var for array subscript
-rwxr-xr-xsrc/fedpkg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index ec04620..cee3c1c 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -405,10 +405,11 @@ def clone(args):
log.debug('Could not read Fedora cert, using login name')
args.user = os.getlogin()
try:
+ module = args.module[0]
if args.branches:
- pyfedpkg.clone_with_dirs(args.module[0], args.user)
+ pyfedpkg.clone_with_dirs(module, args.user)
else:
- pyfedpkg.clone(args.module[0], args.user, args.path, args.branch)
+ pyfedpkg.clone(module, args.user, args.path, args.branch)
except pyfedpkg.FedpkgError, e:
log.error('Could not clone: %s' % e)
sys.exit(1)