From 32c771c2b71217202f7f93cec905c4963a11e535 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 14 Apr 2016 17:58:39 +0200 Subject: error callback can be simplified too which means we can also simplify URPM for not passing an extra paramater on the stack --- urpm/install.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm') 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) { -- cgit v1.2.1