summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-11-19 13:52:04 +0000
committerDaouda Lo <daouda@mandriva.com>2004-11-19 13:52:04 +0000
commit608a7c219f3c9daf8b010920201aa337eb8734f0 (patch)
tree456071c832a5049920790fb89fea8b342986706d
parent042390af2cb30915f471f12f639f07b0b9ceb9a9 (diff)
downloadmgaonline-608a7c219f3c9daf8b010920201aa337eb8734f0.tar
mgaonline-608a7c219f3c9daf8b010920201aa337eb8734f0.tar.gz
mgaonline-608a7c219f3c9daf8b010920201aa337eb8734f0.tar.bz2
mgaonline-608a7c219f3c9daf8b010920201aa337eb8734f0.tar.xz
mgaonline-608a7c219f3c9daf8b010920201aa337eb8734f0.zip
- cleanup
-rwxr-xr-xmdkupdate4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdkupdate b/mdkupdate
index 0401fe1c..facfc95a 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -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";