From 5b6ff038ec8e4bdc82ed221f02a57e6a7ebc4a5f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 10 Nov 2006 09:13:39 +0000 Subject: - adapt ->translate_why_removed to do what each callers do: sort its args and return a single string - create translate_why_removed_one to make function smaller --- gurpmi2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gurpmi2') diff --git a/gurpmi2 b/gurpmi2 index c068b3ed..947c1c73 100755 --- a/gurpmi2 +++ b/gurpmi2 @@ -190,7 +190,7 @@ sub do_install { @ask_remove ? ask_continue(N( "The following packages have to be removed for others to be upgraded:\n%s\nContinue installation anyway?", - join "\n", $urpm->translate_why_removed($state, sort @ask_remove) + $urpm->translate_why_removed($state, @ask_remove) ), \&do_install_2) : goto &do_install_2; } -- cgit v1.2.1