diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-20 19:33:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-20 19:33:19 +0000 |
commit | bdfedfaa972c79ee622328bda609764715085835 (patch) | |
tree | 445611c695d863c77e6d47d64ff99a1e0e545acd | |
parent | 17c075fe282c28d1aef65f711379a0c6fa035544 (diff) | |
download | mgaonline-bdfedfaa972c79ee622328bda609764715085835.tar mgaonline-bdfedfaa972c79ee622328bda609764715085835.tar.gz mgaonline-bdfedfaa972c79ee622328bda609764715085835.tar.bz2 mgaonline-bdfedfaa972c79ee622328bda609764715085835.tar.xz mgaonline-bdfedfaa972c79ee622328bda609764715085835.zip |
(update_pkgs) accept to not be given the list of package to update
-rwxr-xr-x | mdkupdate | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -353,9 +353,9 @@ sub prepare_media { } sub update_pkgs { - @_ or return; + my (@pkgs) = @_; eval { - system "/usr/sbin/urpmi", "--auto", "--media", "update_source", map { if_(/(.*)-[^-]*-[^-]*\.[^-.]*?\.rpm$/, $1) } @_; + system "/usr/sbin/urpmi", "--auto", "--media", "update_source", map { if_(/(.*)-[^-]*-[^-]*\.[^-.]*?\.rpm$/, $1) } @pkgs; $? == 0 or die N("Unable to update packages from update_source medium.\n"); }; $@ and output_p($logfile, "[mdkupdate] Error 99: $@"), return 0; |