summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJochen Schmitt <Jochen@herr-schmitt.de>2010-09-16 20:05:46 +0200
committerJesse Keating <jkeating@redhat.com>2010-09-20 13:17:49 -0700
commitf9443e37b7ca3863ba79f9603d074bcd7c749abe (patch)
tree98670e6b6dbd4fb815febe3c7d8b40f6c4591d6d /src/fedpkg.py
parent16a524c980984505914635c9c232366bf5aa27d2 (diff)
downloadfedora-packager-f9443e37b7ca3863ba79f9603d074bcd7c749abe.zip
fedora-packager-f9443e37b7ca3863ba79f9603d074bcd7c749abe.tar.gz
fedora-packager-f9443e37b7ca3863ba79f9603d074bcd7c749abe.tar.xz
Implementation of a pull command
Hello Jesse, this patch implemts a pull command for fedpkg. Best Regards: Jochen Schmitt
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 0319c70..257d7a7 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -598,6 +598,14 @@ def prep(args):
log.error('Could not prep: %s' % e)
sys.exit(1)
+def pull(args):
+ try:
+ mymodule = pyfedpkg.PackageModule(args.path)
+ mymodule.pull()
+ except pyfedpkg.FedpkgError, e:
+ log.error('Could not push: %s' % e)
+ sys.exit(1)
+
def push(args):
try:
mymodule = pyfedpkg.PackageModule(args.path)
@@ -1024,6 +1032,12 @@ packages will be built sequentially.
parser_prep.add_argument('--arch', help = 'Prep for a specific arch')
parser_prep.set_defaults(command = prep)
+ # Pull stuff
+ parser_pull = subparsers.add_parser('pull',
+ help = 'Pull changes from remote repository')
+ parser_pull.set_defaults(command = pull)
+
+
# Push stuff
parser_push = subparsers.add_parser('push',
help = 'Push changes to remote repository')