From 2485721f598cf40d2e8ae2b40c17efa5b4d84e5c Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Tue, 31 Jul 2007 23:46:03 +0700 Subject: [PATCH] Fixed wrong message during remove package(s) in apt-shell (#7618) --- ...lorg2-alt-src-apt-shell-wrong_message_fix.patch | 14 ++++++++++++++ apt.spec | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 apt-0.5.15lorg2-alt-src-apt-shell-wrong_message_fix.patch diff --git a/apt-0.5.15lorg2-alt-src-apt-shell-wrong_message_fix.patch b/apt-0.5.15lorg2-alt-src-apt-shell-wrong_message_fix.patch new file mode 100644 index 0000000..69e0249 --- /dev/null +++ b/apt-0.5.15lorg2-alt-src-apt-shell-wrong_message_fix.patch @@ -0,0 +1,14 @@ + +https://bugzilla.altlinux.org/show_bug.cgi?id=7618 + +--- apt/cmdline/apt-shell.cc.orig 2007-07-31 23:23:46 +0700 ++++ apt/cmdline/apt-shell.cc 2007-07-31 23:42:10 +0700 +@@ -824,7 +824,7 @@ bool ShowChanges(CacheFile &Cache,pkgDep + ioprintf(c1out,_("After unpacking will need more %sB of disk space.\n"), + SizeToStr(UsrSize).c_str()); + else +- ioprintf(c1out,_("After unpacking will need less %sB of disk space.\n"), ++ ioprintf(c1out,_("After unpacking %sB disk space will be freed.\n"), + SizeToStr(-1*UsrSize).c_str()); + } else { + double DebBytes = Cache->DebSize(); diff --git a/apt.spec b/apt.spec index 0e14c3e..627df06 100644 --- a/apt.spec +++ b/apt.spec @@ -66,6 +66,9 @@ Patch51: apt-0.5.15lorg3-alt-exit-status.patch # Fix for bug #5400 Patch52: apt-0.5.15lorg2-alt-i18n-apt-shell-typo.patch +# Fix for bug #7618 +Patch53: apt-0.5.15lorg2-alt-src-apt-shell-wrong_message_fix.patch + # Normally not applied, but useful. Patch101: apt-0.5.4cnc9-alt-getsrc-debug.patch @@ -274,6 +277,7 @@ This package contains method 'rsync' for APT. %patch50 -p1 %patch51 -p1 %patch52 -p1 +%patch53 -p1 find -type f -name \*.orig -delete