diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-19 16:34:04 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-19 16:34:04 +0000 |
commit | 01ee190ccf444e0d9a012828901f37eb19ad5ff9 (patch) | |
tree | 40be21fbfeaa99ae5c14a8ac0f170263f773f197 /mdkupdate | |
parent | c4d1ff721170fcf10dab78604eb3c90e94ed5013 (diff) | |
download | mgaonline-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-x | mdkupdate | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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') { |