From 4617805d2840cca66d69704ea56bab5e06f10f94 Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Fri, 19 Mar 2004 22:04:16 +0000 Subject: - remove debugging --- mdkupdate | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdkupdate') diff --git a/mdkupdate b/mdkupdate index 68a7bede..1af244a5 100755 --- a/mdkupdate +++ b/mdkupdate @@ -73,7 +73,6 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) { my $MandrakeUpdateURL = $url->{online3_RemoteAction} . '?action=ScheduledRPM' . '&log=' . $o{LOGIN} . '&pass=' . $o{PASS} . '&host=' . $o{MACHINE} . '&key=' . $o{CURRENTKEY}; my $resp = getFromURL($MandrakeUpdateURL); my $contents = $resp->content; - print "CONTENTS=$contents"; if ($resp->is_success) { if ($contents =~ /TRUE/) { $u = 10 } elsif ($contents = m/(\d+)/) { $u = sprintf("%d", $1) } else { $u = 83 } ; my $action = { @@ -84,11 +83,13 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) { if ($c2h->{FTP}) { # for debugging purpose $c2h->{FTP} = 'ftp://ftp.lip6.fr/pub/linux/distributions/mandrake/updates'; - addMedia($c2h->{FTP}) } + addMedia($c2h->{FTP}) + } $scheduled = join(',',@{$c2h->{sched}}); $noscheduled = join(',',@{$c2h->{nosched}}); $noscheduled =~ s/\.rpm//g; printf "SCHEDULED = $scheduled\nNOSCHEDULED = $noscheduled\n"; if ($opt eq '--applet') { + print "MandrakeUpdate --media=mdkupdate --pkg-sel=$scheduled --pkg-nosel=$nosheduled"; system "MandrakeUpdate","--media=mdkupdate","--pkg-sel=$scheduled","--pkg-nosel=$nosheduled"; } elsif ($opt eq '--auto') { $o{AUTO} eq 'TRUE' and autoInstallRpms($c2h->{sched}); -- cgit v1.2.1