summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-07 03:23:08 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-07 03:23:08 +0000
commitcf1a358243fb36b23541e4857ea953eebd65d7c4 (patch)
tree466c8856da25ff670ebf2685ede9411503d636a2
parentaed3ba3437fa08a0b852f5b2aee16169340610e5 (diff)
downloadurpmi-cf1a358243fb36b23541e4857ea953eebd65d7c4.tar
urpmi-cf1a358243fb36b23541e4857ea953eebd65d7c4.tar.gz
urpmi-cf1a358243fb36b23541e4857ea953eebd65d7c4.tar.bz2
urpmi-cf1a358243fb36b23541e4857ea953eebd65d7c4.tar.xz
urpmi-cf1a358243fb36b23541e4857ea953eebd65d7c4.zip
Don't unquotemeta the searched package name when it's alone (for urpme)
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 6ec52d7f..c78723e1 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -3140,7 +3140,7 @@ sub find_packages_to_remove {
if (!$options{force} && @notfound) {
if (@m) {
- $options{callback_fuzzy} and $options{callback_fuzzy}->($urpm, $match, @m)
+ $options{callback_fuzzy} and $options{callback_fuzzy}->($urpm, @$l > 1 ? $match : $l->[0], @m)
or return ();
} else {
$options{callback_notfound} and $options{callback_notfound}->($urpm, @notfound)