diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-04-14 17:58:39 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-04-14 18:12:55 +0200 |
commit | 32c771c2b71217202f7f93cec905c4963a11e535 (patch) | |
tree | 35e30d0464bf27df793099fd00510048dfd04a9c /urpm | |
parent | 9632cd2bcb01a72f9389f3ef148e2e2b70a4b6ea (diff) | |
download | urpmi-32c771c2b71217202f7f93cec905c4963a11e535.tar urpmi-32c771c2b71217202f7f93cec905c4963a11e535.tar.gz urpmi-32c771c2b71217202f7f93cec905c4963a11e535.tar.bz2 urpmi-32c771c2b71217202f7f93cec905c4963a11e535.tar.xz urpmi-32c771c2b71217202f7f93cec905c4963a11e535.zip |
error callback can be simplified too
which means we can also simplify URPM for not passing an extra paramater
on the stack
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/install.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/install.pm b/urpm/install.pm index a351c9d8..d327390b 100644 --- a/urpm/install.pm +++ b/urpm/install.pm @@ -305,8 +305,8 @@ sub _get_callbacks { $current_pkg = $trans->Element_fullname($idx); }; $options->{callback_error} ||= sub { - my ($urpm, undef, $id, $subtype, undef, undef, $fullname) = @_; - $urpm->{error}("ERROR: '$subtype' failed for $fullname"); + my ($urpm, undef, $id, $subtype, undef, undef) = @_; + $urpm->{error}("ERROR: '$subtype' failed for $current_pkg"); }; if ($options->{verbose} >= 0 && $have_pkgs) { |