summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdkupdate b/mdkupdate
index e704b14c..bfa00cfc 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -86,8 +86,8 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) {
$c2h->{FTP} = 'ftp://ftp.lip6.fr/pub/linux/distributions/mandrake/updates';
addMedia($c2h->{FTP}) }
$scheduled = join(',',@{$c2h->{sched}});
- $noscheduled = join(',',@{$c2h->{nosched}}); $noscheduled = s/.rpm//;
- print "SCHEDULED = $scheduled\n; NOSCHEDULED = $noscheduled\n";
+ $noscheduled = join(',',@{$c2h->{nosched}}); $noscheduled =~ s/\.rpm//g;
+ printf "SCHEDULED = $scheduled\n; NOSCHEDULED = $noscheduled\n";
if ($opt eq '--applet') {
system "MandrakeUpdate","--media=mdkupdate","--pkg-sel=$scheduled","--pkg-nosel=$nosheduled";
} elsif ($opt eq '--auto') {