summaryrefslogtreecommitdiffstats
path: root/mdkonline
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-04-13 14:21:23 +0000
committerDaouda Lo <daouda@mandriva.com>2004-04-13 14:21:23 +0000
commit716db47ebef2cb393accd0771e93df10bbe85d3a (patch)
treec88a93e713b5e481413bb702ba7fb60672b49e1d /mdkonline
parent4799f61bb4abc89087aaf454f1fcd9d7d0b9576d (diff)
downloadmgaonline-716db47ebef2cb393accd0771e93df10bbe85d3a.tar
mgaonline-716db47ebef2cb393accd0771e93df10bbe85d3a.tar.gz
mgaonline-716db47ebef2cb393accd0771e93df10bbe85d3a.tar.bz2
mgaonline-716db47ebef2cb393accd0771e93df10bbe85d3a.tar.xz
mgaonline-716db47ebef2cb393accd0771e93df10bbe85d3a.zip
- compatbility
Diffstat (limited to 'mdkonline')
-rwxr-xr-xmdkonline11
1 files changed, 9 insertions, 2 deletions
diff --git a/mdkonline b/mdkonline
index 20d43f49..569bb01c 100755
--- a/mdkonline
+++ b/mdkonline
@@ -44,7 +44,7 @@ use lib qw(/usr/lib/libDrakX/drakfirsttime);
use comdialog;
use data;
-my $confdir = '/root/.mdkonline';
+my $confdir = '/root/.MdkOnline';
add_icon_path("/usr/share/drakfirsttime/pixmaps/");
@@ -57,7 +57,10 @@ my $wideconf = '/etc/sysconfig/mdkonline';
my ($o, $p);
-mkdir_p($confdir);
+#for compatibilities
+mkdir_p($confdir) if !-d confdir;
+mvfiles("/root/.mdkupdate", "$confdir/mdkupdate");
+#mvfiles("/root/.mdkonline", "$confdir/mdkonline");
$o->{mw} = ugtk2->new("MandrakeOnline" . " " . $VERSION, center => 1);
gtkset_size_request($o->{mw}{window}, 580, 470);
@@ -386,6 +389,10 @@ sub wait_msg {
$mainw;
}
sub remove_wait_msg { $_[0]->destroy }
+sub mvfiles {
+ my ($source, $dest) = @_;
+ -e $source and system("mv","$source","$dest");
+}
sub automatedUpgrades {
my ($login, $passwd, $boxname, $key, $country, $auto) = @_;
my ($r) = cat_('/etc/mandrake-release') =~ /release\s(\S+)/;