From 4c60d1b285962ec38fcb75e45bb6b0d8b4ec2c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 15 Jun 2009 15:38:39 +0000 Subject: [PATCH] rename "rebuildpac" to "rebuild", but keep "rebuildpac" as alias. This command works also for whole projects and we get rid of another place of pac/pkg statements. --- NEWS | 1 + osc/commandline.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 48f5ad4d..5a7c7d79 100644 --- a/NEWS +++ b/NEWS @@ -39,6 +39,7 @@ availibility config value, 'standard' and 'opensuse_Factory' in platforms list and in case of fail it uses the last entry from that list - new osc linkpac -f to allow to override existing _link files +- rename "rebuildpac" to "rebuild", but keep "rebuildpac" as alias 0.117: - support checkout of single package via "osc co PACKAGE" when local dir is project diff --git a/osc/commandline.py b/osc/commandline.py index cd7f9502..fe7e7058 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -2410,7 +2410,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. @cmdln.option('-f', '--failed', action='store_true', help='rebuild all failed packages') - def do_rebuildpac(self, subcmd, opts, *args): + @cmdln.alias('rebuildpac') + def do_rebuild(self, subcmd, opts, *args): """${cmd_name}: Triggers package rebuilds With the optional and arguments, the rebuild can be limited @@ -2428,7 +2429,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. 'osc repos' output. usage: - osc rebuildpac PROJECT [PACKAGE [PLATFORM [ARCH]]] + osc rebuild PROJECT [PACKAGE [PLATFORM [ARCH]]] ${cmd_option_list} """