From ed30fd04344fc3c3fa37340dd18a7af13157f564 Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Thu, 16 Feb 2006 16:50:48 +0000 Subject: - if bundle is given without arg, connect to mdkonline bundle webpage. --- mdkupdate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mdkupdate b/mdkupdate index 5c5a7b85..59e93134 100755 --- a/mdkupdate +++ b/mdkupdate @@ -82,13 +82,15 @@ my %options = ( 'a|applet' => \$applet, 'mnf' => \$mnf, 'noX' => \$noX, - 'b|bundle=s' => \$bundle + 'b|bundle:s' => sub { $bundle = $_[1] || 'webbundle' } ); GetOptions(%options); -s $conffile || $bundle or die N("No %s file found. Run mdkonline wizard first", $conffile); +$bundle eq "webbundle" and mdkonline::get_site("http://online3.mandriva.com/one/web/bundle"), exit(0); + my %o = getVarsFromSh($conffile); if (!$bundle) { -- cgit v1.2.1