summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-08-20 14:33:52 -0700
committerJesse Keating <jkeating@redhat.com>2010-08-20 14:33:52 -0700
commit8b5a955077bb7fb652fb2e6082c45b845ba58541 (patch)
tree96c01385809a3f23f8d9c09cb211c9a56998e480 /src/fedpkg.py
parentb7298298036905bd1360193c2e90ace04e29ec44 (diff)
downloadfedora-packager-8b5a955077bb7fb652fb2e6082c45b845ba58541.tar.gz
fedora-packager-8b5a955077bb7fb652fb2e6082c45b845ba58541.tar.xz
fedora-packager-8b5a955077bb7fb652fb2e6082c45b845ba58541.zip
Move commit out of the PackageModule object.
Outside of clog, there is no reason why commit should need data from the spec file. This fixes a bug when marking a package as dead so that one can commit again. Ticket #54
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 0a60b64..187f517 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -431,8 +431,7 @@ def clone(args):
def commit(args):
try:
- mymodule = pyfedpkg.PackageModule(args.path)
- mymodule.commit(args.message, args.file, args.files)
+ pyfedpkg.commit(args.path, args.message, args.file, args.files)
except pyfedpkg.FedpkgError, e:
log.error('Could not commit: %s' % e)
sys.exit(1)