From: Michael Tremer Date: Sat, 3 Dec 2016 16:16:22 +0000 (+0100) Subject: cli: Rename distro-sync to sync X-Git-Tag: 0.9.28~1285^2~1412 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b6f9f7b18c092ab4e08a0710789e125f736519c;p=pakfire.git cli: Rename distro-sync to sync Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/cli.py b/src/pakfire/cli.py index 0e0d3a16f..f6805e444 100644 --- a/src/pakfire/cli.py +++ b/src/pakfire/cli.py @@ -76,11 +76,6 @@ class Cli(object): clean = subparsers.add_parser("clean", help=_("Cleanup all temporary files")) clean.set_defaults(func=self.handle_clean) - # distro-sync - distro_sync = subparsers.add_parser("distro-sync", - help=_("Sync all installed with the latest one in the distribution")) - distro_sync.set_defaults(func=self.handle_distro_sync) - # downgrade downgrade = subparsers.add_parser("downgrade", help=_("Downgrade one or more packages")) downgrade.add_argument("package", nargs="*", @@ -166,6 +161,11 @@ class Cli(object): search.add_argument("pattern", help=_("A pattern to search for")) search.set_defaults(func=self.handle_search) + # sync + sync = subparsers.add_parser("sync", + help=_("Sync all installed with the latest one in the distribution")) + sync.set_defaults(func=self.handle_sync) + # update update = subparsers.add_parser("update", help=_("Update the whole system or one specific package")) @@ -245,7 +245,7 @@ class Cli(object): p.update(packages, **args) - def handle_distro_sync(self, ns): + def handle_sync(self, ns): self.handle_update(ns, sync=True) def handle_check_update(self, ns):