From: Michael Tremer Date: Sat, 23 Apr 2011 10:48:01 +0000 (+0200) Subject: Update command line interface command for the latest changes. X-Git-Tag: 0.9.3~46^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6519843a28b546474daa38d81d79ded1b4b1fa8d;p=pakfire.git Update command line interface command for the latest changes. --- diff --git a/pakfire/cli.py b/pakfire/cli.py index ecc03d630..a7f8d7e76 100644 --- a/pakfire/cli.py +++ b/pakfire/cli.py @@ -385,9 +385,8 @@ class CliBuilder(Cli): else: raise FileNotFoundError, pkg - for pkg in pkgs: - pakfire.dist(pkg, resultdirs=[self.args.resultdir,], - **self.pakfire_args) + pakfire.dist(pkgs, resultdirs=[self.args.resultdir,], + **self.pakfire_args) class CliRepo(Cli): @@ -442,7 +441,6 @@ class CliMaster(Cli): # Add sub-commands. self.sub_commands = self.parser.add_subparsers() - self.parse_command_build() self.parse_command_update() # Finally parse all arguments from the command line and save them. @@ -451,16 +449,9 @@ class CliMaster(Cli): self.master = server.master.Master() self.action2func = { - "build" : self.handle_build, "update" : self.handle_update, } - def parse_command_build(self): - # Implement the "build" command. - sub_build = self.sub_commands.add_parser("build", - help=_("Build one or more packages.")) - sub_build.add_argument("action", action="store_const", const="build") - def parse_command_update(self): # Implement the "update" command. sub_update = self.sub_commands.add_parser("update", @@ -470,9 +461,6 @@ class CliMaster(Cli): def handle_update(self): self.master.update_sources() - def handle_build(self): - self.master.build() - class CliSlave(Cli): def __init__(self): diff --git a/po/pakfire.pot b/po/pakfire.pot index 9763b61bb..b16a365c5 100644 --- a/po/pakfire.pot +++ b/po/pakfire.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-04-23 01:38+0200\n" +"POT-Creation-Date: 2011-04-23 12:44+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -143,7 +143,7 @@ msgstr "" msgid "Update the package indexes." msgstr "" -#: ../pakfire/cli.py:300 ../pakfire/cli.py:461 +#: ../pakfire/cli.py:300 msgid "Build one or more packages." msgstr "" @@ -179,43 +179,43 @@ msgstr "" msgid "Give name(s) of a package(s)." msgstr "" -#: ../pakfire/cli.py:396 +#: ../pakfire/cli.py:395 msgid "Pakfire repo command line interface." msgstr "" -#: ../pakfire/cli.py:415 +#: ../pakfire/cli.py:414 msgid "Repository management commands." msgstr "" -#: ../pakfire/cli.py:423 +#: ../pakfire/cli.py:422 msgid "Create a new repository index." msgstr "" -#: ../pakfire/cli.py:424 +#: ../pakfire/cli.py:423 msgid "Path to the packages." msgstr "" -#: ../pakfire/cli.py:425 +#: ../pakfire/cli.py:424 msgid "Path to input packages." msgstr "" -#: ../pakfire/cli.py:437 +#: ../pakfire/cli.py:436 msgid "Pakfire master command line interface." msgstr "" -#: ../pakfire/cli.py:467 +#: ../pakfire/cli.py:458 msgid "Update the sources." msgstr "" -#: ../pakfire/cli.py:480 +#: ../pakfire/cli.py:468 msgid "Pakfire slave command line interface." msgstr "" -#: ../pakfire/cli.py:504 +#: ../pakfire/cli.py:492 msgid "Request a build job from the server." msgstr "" -#: ../pakfire/cli.py:510 +#: ../pakfire/cli.py:498 msgid "Send a keepalive to the server." msgstr ""