From 608a7c219f3c9daf8b010920201aa337eb8734f0 Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Fri, 19 Nov 2004 13:52:04 +0000 Subject: - cleanup --- mdkupdate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mdkupdate') 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"; -- cgit v1.2.1