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):
# 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.
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",
def handle_update(self):
self.master.update_sources()
- def handle_build(self):
- self.master.build()
-
class CliSlave(Cli):
def __init__(self):
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"
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 ""
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 ""