summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJochen Schmitt <Jochen@herr-schmitt.de>2010-09-16 20:05:47 +0200
committerJesse Keating <jkeating@redhat.com>2010-09-20 13:18:25 -0700
commitabd8e620a19b31a995a57f546988f794fa233b05 (patch)
tree50cdbdc827d9ff2be02f0decf4032066cbd86d87 /src/fedpkg.py
parentf9443e37b7ca3863ba79f9603d074bcd7c749abe (diff)
downloadfedora-packager-abd8e620a19b31a995a57f546988f794fa233b05.tar.gz
fedora-packager-abd8e620a19b31a995a57f546988f794fa233b05.tar.xz
fedora-packager-abd8e620a19b31a995a57f546988f794fa233b05.zip
Move pull and push function out of PackageModule
Hello Jesse, I have move the pull() and push() function in the __init__.py module out of the PackageModule class. Best Regards: Jochen Schmitt
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 257d7a7..8fc21ad 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -600,16 +600,14 @@ def prep(args):
def pull(args):
try:
- mymodule = pyfedpkg.PackageModule(args.path)
- mymodule.pull()
+ pyfedpkg.pull()
except pyfedpkg.FedpkgError, e:
log.error('Could not push: %s' % e)
sys.exit(1)
def push(args):
try:
- mymodule = pyfedpkg.PackageModule(args.path)
- mymodule.push()
+ pyfedpkg.push()
except pyfedpkg.FedpkgError, e:
log.error('Could not push: %s' % e)
sys.exit(1)