summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2006-02-16 16:50:48 +0000
committerDaouda Lo <daouda@mandriva.com>2006-02-16 16:50:48 +0000
commited30fd04344fc3c3fa37340dd18a7af13157f564 (patch)
tree006dab24fea92f1117fa0420403764bb07c037ed /mdkupdate
parentfbfa1e60687f9d46ac6f98bcf3ebabaa78c2bf2e (diff)
downloadmgaonline-ed30fd04344fc3c3fa37340dd18a7af13157f564.tar
mgaonline-ed30fd04344fc3c3fa37340dd18a7af13157f564.tar.gz
mgaonline-ed30fd04344fc3c3fa37340dd18a7af13157f564.tar.bz2
mgaonline-ed30fd04344fc3c3fa37340dd18a7af13157f564.tar.xz
mgaonline-ed30fd04344fc3c3fa37340dd18a7af13157f564.zip
- if bundle is given without arg, connect to mdkonline bundle webpage.
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate4
1 files changed, 3 insertions, 1 deletions
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) {