From c0ca48f32604ae7dce5609230ebf7ce26d4bf699 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 7 Mar 2006 11:16:43 +0000 Subject: if run from a live Mandriva one, warn to install on HD first --- mdkupdate | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mdkupdate b/mdkupdate index 22d7e1fc..7f15785c 100755 --- a/mdkupdate +++ b/mdkupdate @@ -146,6 +146,10 @@ if (!$bundle) { You need to update to a newer version. You can get a new one from http://start.mandriva.com")); $in->exit(1); } + if (-d '/live/media/loopbacks') { + $in->ask_warn(N("Warning"), N("You first need to install the system on your harddrive with the 'Live Install' wizard.")); + $in->exit(1); + } $res eq 'OK' and $bundle_info = mdkonline::soap_query_bundle($wc, $bundle_vars{BUNDLE}); print Data::Dumper->Dump([ $bundle_info ], [ qw(bundle_info) ]); if ($bundle_info->{status}) { -- cgit v1.2.1