diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-04-13 14:21:23 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-04-13 14:21:23 +0000 |
commit | 716db47ebef2cb393accd0771e93df10bbe85d3a (patch) | |
tree | c88a93e713b5e481413bb702ba7fb60672b49e1d | |
parent | 4799f61bb4abc89087aaf454f1fcd9d7d0b9576d (diff) | |
download | mgaonline-716db47ebef2cb393accd0771e93df10bbe85d3a.tar mgaonline-716db47ebef2cb393accd0771e93df10bbe85d3a.tar.gz mgaonline-716db47ebef2cb393accd0771e93df10bbe85d3a.tar.bz2 mgaonline-716db47ebef2cb393accd0771e93df10bbe85d3a.tar.xz mgaonline-716db47ebef2cb393accd0771e93df10bbe85d3a.zip |
- compatbility
-rwxr-xr-x | mdkonline | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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+)/; |