diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-11-19 13:52:04 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-11-19 13:52:04 +0000 |
commit | 608a7c219f3c9daf8b010920201aa337eb8734f0 (patch) | |
tree | 456071c832a5049920790fb89fea8b342986706d | |
parent | 042390af2cb30915f471f12f639f07b0b9ceb9a9 (diff) | |
download | mgaonline-608a7c219f3c9daf8b010920201aa337eb8734f0.tar mgaonline-608a7c219f3c9daf8b010920201aa337eb8734f0.tar.gz mgaonline-608a7c219f3c9daf8b010920201aa337eb8734f0.tar.bz2 mgaonline-608a7c219f3c9daf8b010920201aa337eb8734f0.tar.xz mgaonline-608a7c219f3c9daf8b010920201aa337eb8734f0.zip |
- cleanup
-rwxr-xr-x | mdkupdate | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -77,7 +77,7 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) { my $resp = mdkonline::get_from_URL($MandrakeUpdateURL, 'MdkUpdateAgent'); my $contents = $resp->content; #print "CONTENTS = $contents \n"; - -e $logfile and system "/bin/rm", "$logfile"; + -e $logfile and system "/bin/rm", $logfile; if ($resp->is_success) { if ($contents =~ /TRUE/) { $u = 10 } elsif ($contents =~ m/(\d+)/) { $u = sprintf("%d", $1) } else { $u = 83 }; my $action = { @@ -165,7 +165,7 @@ sub add_media { my $mirror = shift; my ($r) = mdkonline::get_release(); my $dist_type = mdkonline::get_distro_type(); - my $fullpath2mir = "ftp://" . $mirror . if_($dist_type, "/$dist_type") ."/$r" . "/RPMS" . "/"; + my $fullpath2mir = "ftp://" . $mirror . if_($dist_type, "/$dist_type") . "/$r" . "/RPMS" . "/"; eval { system "/usr/sbin/urpmi.removemedia", "mdkupdate"; system "/usr/sbin/urpmi.addmedia", "--update", "mdkupdate", $fullpath2mir, "with", "../base/synthesis.hdlist.cz"; |