[packagekit] [PATCH] urpmi: fix update-system command and only_trusted parameter
Anssi Hannula
anssi at mandriva.org
Mon Jun 21 09:33:45 PDT 2010
Commit 3dcf1228b140ba54e4c5d95e48ecb517d162b5f2 incorrectly modified two
calls to perform_installation to pass options hash as a reference,
causing the parameters to not be interpreted correctly by
perform_installation, breaking update-system command and causing
only_trusted to be ignored in these cases.
Fix that by passing the options as key/value pairs as expected by
perform_installation.
---
backends/urpmi/helpers/urpmi-dispatched-backend.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/backends/urpmi/helpers/urpmi-dispatched-backend.pl b/backends/urpmi/helpers/urpmi-dispatched-backend.pl
index 9a0cf72..de1012f 100755
--- a/backends/urpmi/helpers/urpmi-dispatched-backend.pl
+++ b/backends/urpmi/helpers/urpmi-dispatched-backend.pl
@@ -383,7 +383,7 @@ sub install_packages {
caseinsensitive => 0,
all => 0);
eval {
- perform_installation($urpm, \%requested, { only_trusted => $only_trusted });
+ perform_installation($urpm, \%requested, only_trusted => $only_trusted);
};
_finished();
}
@@ -716,7 +716,7 @@ sub update_system {
my $only_trusted = @{$args}[0];
eval {
- perform_installation($urpm, {}, { auto_select => 1, only_trusted => $only_trusted});
+ perform_installation($urpm, {}, auto_select => 1, only_trusted => $only_trusted);
};
_finished();
}
--
1.7.1
--
Anssi Hannula
More information about the PackageKit
mailing list