Explorar el Código

merged from lp:~donkult/apt/sid

Michael Vogt hace 16 años
padre
commit
6774b53da5
Se han modificado 56 ficheros con 12336 adiciones y 11752 borrados
  1. 2 2
      apt-pkg/contrib/strutl.cc
  2. 1 1
      apt-pkg/depcache.h
  3. 3 3
      apt-pkg/packagemanager.cc
  4. 2 2
      cmdline/apt-cache.cc
  5. 12 0
      cmdline/apt-get.cc
  6. 21 0
      debian/changelog
  7. 1 1
      doc/po/de.po
  8. 278 266
      po/apt-all.pot
  9. 278 266
      po/ar.po
  10. 278 266
      po/ast.po
  11. 278 266
      po/bg.po
  12. 278 266
      po/bs.po
  13. 278 266
      po/ca.po
  14. 278 266
      po/cs.po
  15. 278 266
      po/cy.po
  16. 278 266
      po/da.po
  17. 278 266
      po/de.po
  18. 278 266
      po/dz.po
  19. 278 266
      po/el.po
  20. 278 266
      po/es.po
  21. 278 266
      po/eu.po
  22. 278 266
      po/fi.po
  23. 278 268
      po/fr.po
  24. 278 266
      po/gl.po
  25. 2 2
      po/he.po
  26. 278 266
      po/hu.po
  27. 284 272
      po/it.po
  28. 278 266
      po/ja.po
  29. 278 266
      po/km.po
  30. 278 266
      po/ko.po
  31. 278 266
      po/ku.po
  32. 278 266
      po/lt.po
  33. 278 266
      po/mr.po
  34. 278 266
      po/nb.po
  35. 278 266
      po/ne.po
  36. 280 268
      po/nl.po
  37. 278 266
      po/nn.po
  38. 278 266
      po/pl.po
  39. 279 267
      po/pt.po
  40. 278 266
      po/pt_BR.po
  41. 278 266
      po/ro.po
  42. 279 267
      po/ru.po
  43. 278 266
      po/sk.po
  44. 278 266
      po/sl.po
  45. 278 266
      po/sv.po
  46. 278 266
      po/th.po
  47. 278 266
      po/tl.po
  48. 278 266
      po/uk.po
  49. 543 535
      po/vi.po
  50. 278 273
      po/zh_CN.po
  51. 278 266
      po/zh_TW.po
  52. 24 0
      test/integration/framework
  53. 32 8
      test/integration/test-autoremove
  54. 4 4
      test/integration/test-bug-591882-conkeror
  55. 1 1
      test/integration/test-bug-595691-empty-and-broken-archive-files
  56. 2 2
      test/integration/test-ubuntu-bug-614993

+ 2 - 2
apt-pkg/contrib/strutl.cc

@@ -340,13 +340,13 @@ string SizeToStr(double Size)
    {
    {
       if (ASize < 100 && I != 0)
       if (ASize < 100 && I != 0)
       {
       {
-         sprintf(S,"%'.1f%c",ASize,Ext[I]);
+         sprintf(S,"%'.1f %c",ASize,Ext[I]);
 	 break;
 	 break;
       }
       }
       
       
       if (ASize < 10000)
       if (ASize < 10000)
       {
       {
-         sprintf(S,"%'.0f%c",ASize,Ext[I]);
+         sprintf(S,"%'.0f %c",ASize,Ext[I]);
 	 break;
 	 break;
       }
       }
       ASize /= 1000.0;
       ASize /= 1000.0;

+ 1 - 1
apt-pkg/depcache.h

@@ -189,7 +189,7 @@ class pkgDepCache : protected pkgCache::Namespace
      DefaultRootSetFunc() : Configuration::MatchAgainstConfig("APT::NeverAutoRemove") {};
      DefaultRootSetFunc() : Configuration::MatchAgainstConfig("APT::NeverAutoRemove") {};
      virtual ~DefaultRootSetFunc() {};
      virtual ~DefaultRootSetFunc() {};
 
 
-     bool InRootSet(const pkgCache::PkgIterator &pkg) { return pkg.end() == true && Match(pkg.Name()); };
+     bool InRootSet(const pkgCache::PkgIterator &pkg) { return pkg.end() == false && Match(pkg.Name()); };
    };
    };
 
 
    struct StateCache
    struct StateCache

+ 3 - 3
apt-pkg/packagemanager.cc

@@ -328,7 +328,7 @@ bool pkgPackageManager::SmartConfigure(PkgIterator Pkg)
 
 
    // Sanity Check
    // Sanity Check
    if (List->IsFlag(Pkg,pkgOrderList::Configured) == false)
    if (List->IsFlag(Pkg,pkgOrderList::Configured) == false)
-      return _error->Error(_("Could not perform immediate configuration on '%s'."
+      return _error->Error(_("Could not perform immediate configuration on '%s'. "
 			"Please see man 5 apt.conf under APT::Immediate-Configure for details. (%d)"),Pkg.Name(),1);
 			"Please see man 5 apt.conf under APT::Immediate-Configure for details. (%d)"),Pkg.Name(),1);
 
 
    return true;
    return true;
@@ -492,7 +492,7 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg)
       List->Flag(Pkg,pkgOrderList::UnPacked,pkgOrderList::States);
       List->Flag(Pkg,pkgOrderList::UnPacked,pkgOrderList::States);
       if (List->IsFlag(Pkg,pkgOrderList::Immediate) == true)
       if (List->IsFlag(Pkg,pkgOrderList::Immediate) == true)
 	 if (SmartConfigure(Pkg) == false)
 	 if (SmartConfigure(Pkg) == false)
-	    return _error->Error(_("Could not perform immediate configuration on already unpacked '%s'."
+	    return _error->Error(_("Could not perform immediate configuration on already unpacked '%s'. "
 			"Please see man 5 apt.conf under APT::Immediate-Configure for details."),Pkg.Name());
 			"Please see man 5 apt.conf under APT::Immediate-Configure for details."),Pkg.Name());
       return true;
       return true;
    }
    }
@@ -613,7 +613,7 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg)
    // Perform immedate configuration of the package.
    // Perform immedate configuration of the package.
    if (List->IsFlag(Pkg,pkgOrderList::Immediate) == true)
    if (List->IsFlag(Pkg,pkgOrderList::Immediate) == true)
       if (SmartConfigure(Pkg) == false)
       if (SmartConfigure(Pkg) == false)
-	 return _error->Error(_("Could not perform immediate configuration on '%s'."
+	 return _error->Error(_("Could not perform immediate configuration on '%s'. "
 			"Please see man 5 apt.conf under APT::Immediate-Configure for details. (%d)"),Pkg.Name(),2);
 			"Please see man 5 apt.conf under APT::Immediate-Configure for details. (%d)"),Pkg.Name(),2);
    
    
    return true;
    return true;

+ 2 - 2
cmdline/apt-cache.cc

@@ -1321,7 +1321,7 @@ bool Search(CommandLine &CmdL)
 	 continue;
 	 continue;
       pkgCache::VerIterator V = Plcy->GetCandidateVer(P);
       pkgCache::VerIterator V = Plcy->GetCandidateVer(P);
       if (V.end() == false)
       if (V.end() == false)
-	 DFList[G->ID].Df = V.DescriptionList().FileList();
+	 DFList[G->ID].Df = V.TranslatedDescription().FileList();
 
 
       if (DFList[G->ID].NameMatch == false)
       if (DFList[G->ID].NameMatch == false)
 	 continue;
 	 continue;
@@ -1334,7 +1334,7 @@ bool Search(CommandLine &CmdL)
 	    continue;
 	    continue;
 
 
 	 unsigned long id = Prv.OwnerPkg().Group()->ID;
 	 unsigned long id = Prv.OwnerPkg().Group()->ID;
-	 DFList[id].Df = V.DescriptionList().FileList();
+	 DFList[id].Df = V.TranslatedDescription().FileList();
 	 DFList[id].NameMatch = true;
 	 DFList[id].NameMatch = true;
       }
       }
    }
    }

+ 12 - 0
cmdline/apt-get.cc

@@ -1106,17 +1106,25 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
    
    
    // Number of bytes
    // Number of bytes
    if (DebBytes != FetchBytes)
    if (DebBytes != FetchBytes)
+      //TRANSLATOR: The required space between number and unit is already included
+      // in the replacement strings, so %sB will be correctly translate in e.g. 1,5 MB
       ioprintf(c1out,_("Need to get %sB/%sB of archives.\n"),
       ioprintf(c1out,_("Need to get %sB/%sB of archives.\n"),
 	       SizeToStr(FetchBytes).c_str(),SizeToStr(DebBytes).c_str());
 	       SizeToStr(FetchBytes).c_str(),SizeToStr(DebBytes).c_str());
    else if (DebBytes != 0)
    else if (DebBytes != 0)
+      //TRANSLATOR: The required space between number and unit is already included
+      // in the replacement string, so %sB will be correctly translate in e.g. 1,5 MB
       ioprintf(c1out,_("Need to get %sB of archives.\n"),
       ioprintf(c1out,_("Need to get %sB of archives.\n"),
 	       SizeToStr(DebBytes).c_str());
 	       SizeToStr(DebBytes).c_str());
 
 
    // Size delta
    // Size delta
    if (Cache->UsrSize() >= 0)
    if (Cache->UsrSize() >= 0)
+      //TRANSLATOR: The required space between number and unit is already included
+      // in the replacement string, so %sB will be correctly translate in e.g. 1,5 MB
       ioprintf(c1out,_("After this operation, %sB of additional disk space will be used.\n"),
       ioprintf(c1out,_("After this operation, %sB of additional disk space will be used.\n"),
 	       SizeToStr(Cache->UsrSize()).c_str());
 	       SizeToStr(Cache->UsrSize()).c_str());
    else
    else
+      //TRANSLATOR: The required space between number and unit is already included
+      // in the replacement string, so %sB will be correctly translate in e.g. 1,5 MB
       ioprintf(c1out,_("After this operation, %sB disk space will be freed.\n"),
       ioprintf(c1out,_("After this operation, %sB disk space will be freed.\n"),
 	       SizeToStr(-1*Cache->UsrSize()).c_str());
 	       SizeToStr(-1*Cache->UsrSize()).c_str());
 
 
@@ -2340,9 +2348,13 @@ bool DoSource(CommandLine &CmdL)
    
    
    // Number of bytes
    // Number of bytes
    if (DebBytes != FetchBytes)
    if (DebBytes != FetchBytes)
+      //TRANSLATOR: The required space between number and unit is already included
+      // in the replacement strings, so %sB will be correctly translate in e.g. 1,5 MB
       ioprintf(c1out,_("Need to get %sB/%sB of source archives.\n"),
       ioprintf(c1out,_("Need to get %sB/%sB of source archives.\n"),
 	       SizeToStr(FetchBytes).c_str(),SizeToStr(DebBytes).c_str());
 	       SizeToStr(FetchBytes).c_str(),SizeToStr(DebBytes).c_str());
    else
    else
+      //TRANSLATOR: The required space between number and unit is already included
+      // in the replacement string, so %sB will be correctly translate in e.g. 1,5 MB
       ioprintf(c1out,_("Need to get %sB of source archives.\n"),
       ioprintf(c1out,_("Need to get %sB of source archives.\n"),
 	       SizeToStr(DebBytes).c_str());
 	       SizeToStr(DebBytes).c_str());
    
    

+ 21 - 0
debian/changelog

@@ -1,3 +1,24 @@
+apt (0.8.6) UNRELEASED; urgency=low
+
+  [ Programs translations ]
+  * Vietnamese update by Clytie Siddall (Closes: #598489)
+
+  [ David Kalnischkies ]
+  * cmdline/apt-cache.cc:
+    - use the TranslatedDescription for searching and not the first
+      available one as it is maybe not an expected language (Closes: #597925)
+  * apt-pkg/contrib/strutl.cc:
+    - add a space between number and unit as required by SI (Closes: #598352)
+  * apt-pkg/depcache.cc:
+    - do not check endpointer packages instead of only those which prevented
+      NeverAutoRemove settings from having an effect (Closes: #598452)
+  * apt-pkg/packagemanager.cc:
+    - Add a space between period and 'Please' and unfuzzy all translations
+  * doc/po/de.po:
+    - remove the duplicated "angefertigt" in translation-holder string
+
+ -- David Kalnischkies <kalnischkies@gmail.com>  Thu, 30 Sep 2010 12:26:34 +0200
+
 apt (0.8.5) unstable; urgency=low
 apt (0.8.5) unstable; urgency=low
 
 
   [ Manpages translations ]
   [ Manpages translations ]

+ 1 - 1
doc/po/de.po

@@ -1121,7 +1121,7 @@ msgid ""
 msgstr ""
 msgstr ""
 "<!ENTITY translation-holder \"\n"
 "<!ENTITY translation-holder \"\n"
 "     Die deutsche Übersetzung wurde 2009 von Chris Leick\n"
 "     Die deutsche Übersetzung wurde 2009 von Chris Leick\n"
-"     <email>c.leick@vollbio.de</email> angefertigt in Zusammenarbeit mit dem\n"
+"     <email>c.leick@vollbio.de</email> in Zusammenarbeit mit dem\n"
 "     deutschen l10n-Team von Debian\n"
 "     deutschen l10n-Team von Debian\n"
 "     <email>debian-l10n-german@lists.debian.org</email> angefertigt.\n"
 "     <email>debian-l10n-german@lists.debian.org</email> angefertigt.\n"
 "\">\n"
 "\">\n"

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/apt-all.pot


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/ar.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/ast.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/bg.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/bs.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/ca.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/cs.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/cy.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/da.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/de.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/dz.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/el.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/es.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/eu.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/fi.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 268
po/fr.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/gl.po


+ 2 - 2
po/he.po

@@ -2319,7 +2319,7 @@ msgstr ""
 #: apt-pkg/packagemanager.cc:324 apt-pkg/packagemanager.cc:586
 #: apt-pkg/packagemanager.cc:324 apt-pkg/packagemanager.cc:586
 #, c-format
 #, c-format
 msgid ""
 msgid ""
-"Could not perform immediate configuration on '%s'.Please see man 5 apt.conf "
+"Could not perform immediate configuration on '%s'. Please see man 5 apt.conf "
 "under APT::Immediate-Configure for details. (%d)"
 "under APT::Immediate-Configure for details. (%d)"
 msgstr ""
 msgstr ""
 
 
@@ -2334,7 +2334,7 @@ msgstr ""
 #: apt-pkg/packagemanager.cc:478
 #: apt-pkg/packagemanager.cc:478
 #, c-format
 #, c-format
 msgid ""
 msgid ""
-"Could not perform immediate configuration on already unpacked '%s'.Please "
+"Could not perform immediate configuration on already unpacked '%s'. Please "
 "see man 5 apt.conf under APT::Immediate-Configure for details."
 "see man 5 apt.conf under APT::Immediate-Configure for details."
 msgstr ""
 msgstr ""
 
 

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/hu.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 284 - 272
po/it.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/ja.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/km.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/ko.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/ku.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/lt.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/mr.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/nb.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/ne.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 280 - 268
po/nl.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/nn.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/pl.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 279 - 267
po/pt.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/pt_BR.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/ro.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 279 - 267
po/ru.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/sk.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/sl.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/sv.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/th.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/tl.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/uk.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 543 - 535
po/vi.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 273
po/zh_CN.po


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 278 - 266
po/zh_TW.po


+ 24 - 0
test/integration/framework

@@ -499,3 +499,27 @@ testnopackage() {
 	fi
 	fi
 	msgpass
 	msgpass
 }
 }
+
+testdpkginstalled() {
+	msgtest "Test for correctly installed package(s) with" "dpkg -l $*"
+	local PKGS="$(dpkg -l $* | grep '^[a-z]' | grep '^[^i]' | wc -l)"
+	if [ "$PKGS" != 0 ]; then
+		echo $PKGS
+		dpkg -l $* | grep '^[a-z]'
+		msgfail
+		return 1
+	fi
+	msgpass
+}
+
+testdpkgnoninstalled() {
+	msgtest "Test for correctly non-installed package(s) with" "dpkg -l $*"
+	local PKGS="$(dpkg -l $* | grep '^[a-z]' | grep '^[^u]' | wc -l)"
+	if [ "$PKGS" != 0 ]; then
+		echo
+		dpkg -l $* | grep '^[a-z]'
+		msgfail
+		return 1
+	fi
+	msgpass
+}

+ 32 - 8
test/integration/test-autoremove

@@ -4,26 +4,50 @@ set -e
 local TESTDIR=$(readlink -f $(dirname $0))
 local TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 setupenvironment
 setupenvironment
-configarchitecture "i386"
+configarchitecture 'i386'
 
 
-buildsimplenativepackage "unrelated" "all" "1" "unstable"
-buildsimplenativepackage "po-debconf" "all" "1.0.16" "unstable"
-buildsimplenativepackage "debhelper" "all" "8.0.0" "unstable" "Depends: po-debconf"
+buildsimplenativepackage 'unrelated' 'all' '1' 'unstable'
+buildsimplenativepackage 'po-debconf' 'all' '1.0.16' 'unstable'
+buildsimplenativepackage 'debhelper' 'all' '8.0.0' 'unstable' 'Depends: po-debconf'
 setupaptarchive
 setupaptarchive
 
 
 aptget install unrelated debhelper -qq 2>&1 > /dev/null
 aptget install unrelated debhelper -qq 2>&1 > /dev/null
+testdpkginstalled 'unrelated' 'debhelper' 'po-debconf'
 
 
-testfileequal "rootdir/var/lib/apt/extended_states" "Package: po-debconf
+testfileequal 'rootdir/var/lib/apt/extended_states' 'Package: po-debconf
 Architecture: i386
 Architecture: i386
 Auto-Installed: 1
 Auto-Installed: 1
-"
+'
 aptget remove debhelper -y -qq 2>&1 > /dev/null
 aptget remove debhelper -y -qq 2>&1 > /dev/null
+testdpkgnoninstalled 'debhelper'
+testdpkginstalled 'po-debconf unrelated'
+
+echo 'APT::NeverAutoRemove { "^debc.*nf$"; };' > rootdir/etc/apt/apt.conf.d/00autoremove
+testequal 'Reading package lists...
+Building dependency tree...
+Reading state information...
+The following packages will be REMOVED:
+  po-debconf
+0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
+Remv po-debconf [1.0.16]' aptget autoremove -s
+testdpkginstalled 'po-debconf'
+
+echo 'APT::NeverAutoRemove { "^po-debconf$"; };' > rootdir/etc/apt/apt.conf.d/00autoremove
 aptget autoremove -y -qq 2>&1 > /dev/null
 aptget autoremove -y -qq 2>&1 > /dev/null
+testdpkginstalled 'po-debconf'
 
 
-testfileequal "rootdir/var/lib/apt/extended_states" ""
+echo 'APT::NeverAutoRemove { "^po-.*$"; };' > rootdir/etc/apt/apt.conf.d/00autoremove
+aptget autoremove -y -qq 2>&1 > /dev/null
+testdpkginstalled "po-debconf"
+
+rm rootdir/etc/apt/apt.conf.d/00autoremove
+aptget autoremove -y -qq 2>&1 > /dev/null
+testdpkgnoninstalled 'po-debconf'
+
+testfileequal 'rootdir/var/lib/apt/extended_states' ''
 
 
 sed -i rootdir/var/log/apt/history.log -e '/^Commandline: / d' -e '/^Start-Date: / d' -e '/^End-Date: / d'
 sed -i rootdir/var/log/apt/history.log -e '/^Commandline: / d' -e '/^Start-Date: / d' -e '/^End-Date: / d'
-testfileequal "rootdir/var/log/apt/history.log" '
+testfileequal 'rootdir/var/log/apt/history.log' '
 Install: unrelated:i386 (1), debhelper:i386 (8.0.0), po-debconf:i386 (1.0.16, automatic)
 Install: unrelated:i386 (1), debhelper:i386 (8.0.0), po-debconf:i386 (1.0.16, automatic)
 
 
 Remove: debhelper:i386 (8.0.0)
 Remove: debhelper:i386 (8.0.0)

+ 4 - 4
test/integration/test-bug-591882-conkeror

@@ -34,8 +34,8 @@ The following packages will be upgraded:
   perl-base perl-modules readline-common sed ttf-dejavu-core ucf whiptail
   perl-base perl-modules readline-common sed ttf-dejavu-core ucf whiptail
   x11-common zlib1g
   x11-common zlib1g
 87 upgraded, 26 newly installed, 5 to remove and 0 not upgraded.
 87 upgraded, 26 newly installed, 5 to remove and 0 not upgraded.
-Need to get 0B/54.4MB of archives.
-After this operation, 12.4MB of additional disk space will be used.
+Need to get 0 B/54.4 MB of archives.
+After this operation, 12.4 MB of additional disk space will be used.
 E: Trivial Only specified but this is not a trivial operation."
 E: Trivial Only specified but this is not a trivial operation."
 
 
 UPGRADESUCCESS="Reading package lists...
 UPGRADESUCCESS="Reading package lists...
@@ -66,8 +66,8 @@ The following packages will be upgraded:
   perl-base perl-modules readline-common sed ttf-dejavu-core ucf whiptail
   perl-base perl-modules readline-common sed ttf-dejavu-core ucf whiptail
   x11-common zlib1g
   x11-common zlib1g
 88 upgraded, 30 newly installed, 4 to remove and 0 not upgraded.
 88 upgraded, 30 newly installed, 4 to remove and 0 not upgraded.
-Need to get 0B/62.9MB of archives.
-After this operation, 36.0MB of additional disk space will be used.
+Need to get 0 B/62.9 MB of archives.
+After this operation, 36.0 MB of additional disk space will be used.
 E: Trivial Only specified but this is not a trivial operation."
 E: Trivial Only specified but this is not a trivial operation."
 
 
 # Test that the old behavior can be restored with the option
 # Test that the old behavior can be restored with the option

+ 1 - 1
test/integration/test-bug-595691-empty-and-broken-archive-files

@@ -11,7 +11,7 @@ setupflataptarchive
 
 
 testaptgetupdate() {
 testaptgetupdate() {
 	aptget update 2>> testaptgetupdate.diff >> testaptgetupdate.diff || true
 	aptget update 2>> testaptgetupdate.diff >> testaptgetupdate.diff || true
-	sed -i -e '/^Fetched / d' -e 's#\[[0-9]*[kMGTPY]*B\]#\[\]#' testaptgetupdate.diff
+	sed -i -e '/^Fetched / d' -e 's#\[[0-9]* [kMGTPY]*B\]#\[\]#' testaptgetupdate.diff
 	GIVEN="$1"
 	GIVEN="$1"
 	shift
 	shift
 	msgtest "Test for correctness of" "apt-get update with $*"
 	msgtest "Test for correctness of" "apt-get update with $*"

+ 2 - 2
test/integration/test-ubuntu-bug-614993

@@ -52,8 +52,8 @@ The following packages will be upgraded:
   xserver-xorg-video-tseng xserver-xorg-video-vesa xserver-xorg-video-vmware
   xserver-xorg-video-tseng xserver-xorg-video-vesa xserver-xorg-video-vmware
   xserver-xorg-video-voodoo
   xserver-xorg-video-voodoo
 41 upgraded, 5 newly installed, 1 to remove and 3 not upgraded.
 41 upgraded, 5 newly installed, 1 to remove and 3 not upgraded.
-Need to get 0B/5505kB of archives.
-After this operation, 2294kB disk space will be freed.
+Need to get 0 B/5505 kB of archives.
+After this operation, 2294 kB disk space will be freed.
 E: Trivial Only specified but this is not a trivial operation."
 E: Trivial Only specified but this is not a trivial operation."
 testequal "$UPGRADE" aptget install xserver-xorg --trivial-only
 testequal "$UPGRADE" aptget install xserver-xorg --trivial-only