]> git.ipfire.org Git - pakfire.git/commitdiff
Update command line interface command for the latest changes.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Apr 2011 10:48:01 +0000 (12:48 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Apr 2011 10:48:01 +0000 (12:48 +0200)
pakfire/cli.py
po/pakfire.pot

index ecc03d63054b966d777123eb300ae1d7a094290f..a7f8d7e764ff0b9e0ac8f20dadea68dda2ee9087 100644 (file)
@@ -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):
index 9763b61bb51ae0917e084ddf71e45f9bf5677fc7..b16a365c5b1639a9cc3064ecb00c2cf7308fb901 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\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 ""