aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mandriva.org>2010-07-30 00:45:06 +0000
committerMichael Scherer <misc@mandriva.org>2010-07-30 00:45:06 +0000
commit7bc27f76a81245ee8d201587b8031160d8dfbce5 (patch)
treeb2920a5cea6e8af10450636a3fb45bd4eed5a920
parentfbfd91d92585a88386f6e818325f18faf3443dd3 (diff)
downloadperl-URPM-7bc27f76a81245ee8d201587b8031160d8dfbce5.tar
perl-URPM-7bc27f76a81245ee8d201587b8031160d8dfbce5.tar.gz
perl-URPM-7bc27f76a81245ee8d201587b8031160d8dfbce5.tar.bz2
perl-URPM-7bc27f76a81245ee8d201587b8031160d8dfbce5.tar.xz
perl-URPM-7bc27f76a81245ee8d201587b8031160d8dfbce5.zip
- fix warning on perl 5.12, spotted by olivier thauvin ( Odd number of elements in anonymous hash at URPM/Resolve.pm line 1192. )
-rw-r--r--URPM/Resolve.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 70105d3..7e38db8 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -1192,7 +1192,7 @@ sub _unselect_package_deprecated_by_property {
set_rejected_and_compute_diff_provides($urpm, $state, $diff_provides_h, {
rejected_pkg => $p,
obsoleted => $obsoleted, removed => !$obsoleted,
- from => $pkg, why => $obsoleted ? () : { old_requested => 1 },
+ from => $pkg, why => $obsoleted ? undef : { old_requested => 1 },
});
$obsoleted or ++$state->{oldpackage};
});