summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-09-20 14:12:55 -0700
committerJesse Keating <jkeating@redhat.com>2010-09-20 14:12:55 -0700
commitb9c57959f458a3e3265bb4eace245a46526d031a (patch)
treea3281ec168f50efa339830b0493db5c22c43236d /src
parente60a98b0969a729178202bc63668758aea0773d1 (diff)
downloadfedora-packager-b9c57959f458a3e3265bb4eace245a46526d031a.zip
fedora-packager-b9c57959f458a3e3265bb4eace245a46526d031a.tar.gz
fedora-packager-b9c57959f458a3e3265bb4eace245a46526d031a.tar.xz
Fix up commit with tag changes
Don't use getnvr, and use existing reference to clog file
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fedpkg.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index a6bab26..faaa23e 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -458,11 +458,9 @@ def commit(args):
try:
if not mymodule:
mymodule = pyfedpkg.PackageModule(args.path)
- tagname = mymodule.getnvr()
+ tagname = mymodule.nvr()
filename = args.file
- if args.clog:
- filename = 'clog'
- pyfedpkg.add_tag(tagname, True, args.message, filename)
+ pyfedpkg.add_tag(tagname, True, args.message, args.file)
except pyfedpkg.FedpkgError, e:
log.error('Coult not create a tag: %s' % e)
sys.exit(1)