print pkg.dump(long=True)
-class CliRepo(Cli):
- def __init__(self):
- self.parser = argparse.ArgumentParser(
- description = _("Pakfire repo command line interface."),
- )
-
- self.parse_common_arguments()
-
- # Add sub-commands.
- self.sub_commands = self.parser.add_subparsers()
-
- self.parse_command_repo()
-
- # Finally parse all arguments from the command line and save them.
- self.args = self.parser.parse_args()
-
- self.action2func = {
- "repo_create" : self.handle_repo_create,
- }
-
- @property
- def pakfire_args(self):
- ret = { "mode" : "repo" }
-
- return ret
-
- def parse_command_repo(self):
- sub_repo = self.sub_commands.add_parser("repo",
- help=_("Repository management commands."))
-
- sub_repo_commands = sub_repo.add_subparsers()
-
- self.parse_command_repo_create(sub_repo_commands)
-
- def parse_command_repo_create(self, sub_commands):
- sub_create = sub_commands.add_parser("create",
- help=_("Create a new repository index."))
- sub_create.add_argument("path", nargs=1, help=_("Path to the packages."))
- sub_create.add_argument("inputs", nargs="+", help=_("Path to input packages."))
- sub_create.add_argument("action", action="store_const", const="repo_create")
-
- def handle_repo_create(self):
- path = self.args.path[0]
-
- pakfire.repo_create(path, self.args.inputs, **self.pakfire_args)
-
-
-class CliMaster(Cli):
- def __init__(self):
- self.parser = argparse.ArgumentParser(
- description = _("Pakfire master command line interface."),
- )
-
- self.parse_common_arguments()
-
- # Add sub-commands.
- self.sub_commands = self.parser.add_subparsers()
-
- self.parse_command_update()
-
- # Finally parse all arguments from the command line and save them.
- self.args = self.parser.parse_args()
-
- self.master = server.master.Master()
-
- self.action2func = {
- "update" : self.handle_update,
- }
-
- @property
- def pakfire_args(self):
- ret = { "mode" : "master" }
-
- return ret
-
- def parse_command_update(self):
- # Implement the "update" command.
- sub_update = self.sub_commands.add_parser("update",
- help=_("Update the sources."))
- sub_update.add_argument("action", action="store_const", const="update")
-
- def handle_update(self):
- self.master.update_sources()
-
-
class CliServer(Cli):
def __init__(self):
self.parser = argparse.ArgumentParser(
self.parse_command_build()
self.parse_command_keepalive()
self.parse_command_repoupdate()
+ self.parse_command_repo()
# Finally parse all arguments from the command line and save them.
self.args = self.parser.parse_args()
"build" : self.handle_build,
"keepalive" : self.handle_keepalive,
"repoupdate" : self.handle_repoupdate,
+ "repo_create": self.handle_repo_create,
}
@property
sub_repoupdate.add_argument("action", action="store_const",
const="repoupdate")
+ def parse_command_repo(self):
+ sub_repo = self.sub_commands.add_parser("repo",
+ help=_("Repository management commands."))
+
+ sub_repo_commands = sub_repo.add_subparsers()
+
+ self.parse_command_repo_create(sub_repo_commands)
+
+ def parse_command_repo_create(self, sub_commands):
+ sub_create = sub_commands.add_parser("create",
+ help=_("Create a new repository index."))
+ sub_create.add_argument("path", nargs=1, help=_("Path to the packages."))
+ sub_create.add_argument("inputs", nargs="+", help=_("Path to input packages."))
+ sub_create.add_argument("action", action="store_const", const="repo_create")
+
def handle_keepalive(self):
self.server.update_info()
def handle_repoupdate(self):
self.server.update_repositories()
+
+ def handle_repo_create(self):
+ path = self.args.path[0]
+
+ pakfire.repo_create(path, self.args.inputs, **self.pakfire_args)
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-08-05 19:13+0200\n"
+"POT-Creation-Date: 2011-08-06 14:14+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"
msgstr ""
#: ../pakfire/cli.py:432
-msgid "Pakfire repo command line interface."
-msgstr ""
-
-#: ../pakfire/cli.py:457
-msgid "Repository management commands."
-msgstr ""
-
-#: ../pakfire/cli.py:465
-msgid "Create a new repository index."
+msgid "Pakfire server command line interface."
msgstr ""
#: ../pakfire/cli.py:466
-msgid "Path to the packages."
+msgid "Request a build job from the server."
msgstr ""
-#: ../pakfire/cli.py:467
-msgid "Path to input packages."
+#: ../pakfire/cli.py:472
+msgid "Send a keepalive to the server."
msgstr ""
#: ../pakfire/cli.py:479
-msgid "Pakfire master command line interface."
-msgstr ""
-
-#: ../pakfire/cli.py:507
-msgid "Update the sources."
+msgid "Update all repositories."
msgstr ""
-#: ../pakfire/cli.py:517
-msgid "Pakfire server command line interface."
+#: ../pakfire/cli.py:485
+msgid "Repository management commands."
msgstr ""
-#: ../pakfire/cli.py:549
-msgid "Request a build job from the server."
+#: ../pakfire/cli.py:493
+msgid "Create a new repository index."
msgstr ""
-#: ../pakfire/cli.py:555
-msgid "Send a keepalive to the server."
+#: ../pakfire/cli.py:494
+msgid "Path to the packages."
msgstr ""
-#: ../pakfire/cli.py:562
-msgid "Update all repositories."
+#: ../pakfire/cli.py:495
+msgid "Path to input packages."
msgstr ""
#: ../pakfire/errors.py:8
msgid "%s [y/N]"
msgstr ""
+#: ../scripts/pakfire:23
+msgid ""
+"There has been an error when trying to import one or more of the modules, "
+"that are required to run Pakfire."
+msgstr ""
+
+#: ../scripts/pakfire:25
+msgid "Please your installation of Pakfire."
+msgstr ""
+
+#: ../scripts/pakfire:27
+msgid "The error that lead to this:"
+msgstr ""
+
+#: ../scripts/pakfire:64
+msgid "An error has occured when running Pakfire."
+msgstr ""
+
+#: ../scripts/pakfire:67
+msgid "Error message:"
+msgstr ""
+
+#: ../scripts/pakfire:71
+msgid "Further description:"
+msgstr ""
+
#: ../src/problem.c:140
#, c-format
msgid "%s does not belong to a distupgrade repository"