summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-19 16:34:04 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-19 16:34:04 +0000
commit01ee190ccf444e0d9a012828901f37eb19ad5ff9 (patch)
tree40be21fbfeaa99ae5c14a8ac0f170263f773f197 /mdkupdate
parentc4d1ff721170fcf10dab78604eb3c90e94ed5013 (diff)
downloadmgaonline-01ee190ccf444e0d9a012828901f37eb19ad5ff9.tar
mgaonline-01ee190ccf444e0d9a012828901f37eb19ad5ff9.tar.gz
mgaonline-01ee190ccf444e0d9a012828901f37eb19ad5ff9.tar.bz2
mgaonline-01ee190ccf444e0d9a012828901f37eb19ad5ff9.tar.xz
mgaonline-01ee190ccf444e0d9a012828901f37eb19ad5ff9.zip
- remove trailing rpm
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') {