From 8b5a955077bb7fb652fb2e6082c45b845ba58541 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 20 Aug 2010 14:33:52 -0700 Subject: 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 --- src/fedpkg.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fedpkg.py') 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) -- cgit