Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=2288c3e3fe0bef941c2bc39f56567dcdbc65d672
commit 2288c3e3fe0bef941c2bc39f56567dcdbc65d672 Author: Miklos Vajna <[email protected]> Date: Tue Oct 20 20:50:58 2009 +0200 syncpkgdctl: implement the -d option diff --git a/syncpkgd/syncpkgdctl.py b/syncpkgd/syncpkgdctl.py index eb10dcc..7010131 100644 --- a/syncpkgd/syncpkgdctl.py +++ b/syncpkgd/syncpkgdctl.py @@ -7,10 +7,16 @@ from ctlconfig import config server = xmlrpclib.Server(config.server_url) if len(sys.argv) > 1: - if server.request_build(config.server_user, config.server_pass, sys.argv[1]): - print "Okay, the daemon will build this package for you." + if sys.argv[1] == "-d": + if server.cancel_build(config.server_user, config.server_pass, sys.argv[2]): + print "Okay, the daemon will not build this package for you." + else: + print "Oops, something went wrong. Maybe this package was already removed from the queue?" else: - print "Oops, something went wrong. Maybe this package is already in the queue?" + if server.request_build(config.server_user, config.server_pass, sys.argv[1]): + print "Okay, the daemon will build this package for you." + else: + print "Oops, something went wrong. Maybe this package is already in the queue?" else: print """At the moment the following packages are waiting to be built:""" print server.get_todo(config.server_user, config.server_pass) diff --git a/syncpkgd/syncpkgdctl.txt b/syncpkgd/syncpkgdctl.txt index 230a80b..9ce7788 100644 --- a/syncpkgd/syncpkgdctl.txt +++ b/syncpkgd/syncpkgdctl.txt @@ -6,7 +6,12 @@ syncpkgdctl - controller client for the package synchronization daemon == SYNOPSIS -syncpkgdctl [<url>] +syncpkgdctl [<options>] [<url>] + +== OPTIONS + +-d:: + Don't add the url but remove it. == DESCTIPTION _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
