]> git.saurik.com Git - apt.git/commitdiff
* merged from Christian Perrier (http://www.perrier.eu.org/debian/packages
authorMichael Vogt <michael.vogt@ubuntu.com>
Sat, 30 Sep 2006 12:36:06 +0000 (14:36 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Sat, 30 Sep 2006 12:36:06 +0000 (14:36 +0200)
/d-i/level4/apt-main)

apt-pkg/deb/dpkgpm.cc
buildlib/apti18n.h.in
debian/changelog
debian/rules
doc/examples/configure-index
methods/gzip.cc

index bf0434ccc5ab32c5333c122579f7d48117c743f8..2b167dbf6f31c79765135f2d416f27843b40d4cb 100644 (file)
@@ -355,28 +355,28 @@ bool pkgDPkgPM::Go(int OutStatusFd)
    static const struct DpkgState DpkgStatesOpMap[][5] = {
       // Install operation
       { 
-        {"half-installed", _("Preparing %s")}, 
-        {"unpacked", _("Unpacking %s") }, 
+        {"half-installed", N_("Preparing %s")}, 
+        {"unpacked", N_("Unpacking %s") }, 
         {NULL, NULL}
       },
       // Configure operation
       { 
-        {"unpacked",_("Preparing to configure %s") },
-        {"half-configured", _("Configuring %s") },
-        { "installed", _("Installed %s")},
+        {"unpacked",N_("Preparing to configure %s") },
+        {"half-configured", N_("Configuring %s") },
+        { "installed", N_("Installed %s")},
         {NULL, NULL}
       },
       // Remove operation
       { 
-        {"half-configured", _("Preparing for removal of %s")},
-        {"half-installed", _("Removing %s")},
-        {"config-files",  _("Removed %s")},
+        {"half-configured", N_("Preparing for removal of %s")},
+        {"half-installed", N_("Removing %s")},
+        {"config-files",  N_("Removed %s")},
         {NULL, NULL}
       },
       // Purge operation
       { 
-        {"config-files", _("Preparing to completely remove %s")},
-        {"not-installed", _("Completely removed %s")},
+        {"config-files", N_("Preparing to completely remove %s")},
+        {"not-installed", N_("Completely removed %s")},
         {NULL, NULL}
       },
    };
@@ -670,7 +670,7 @@ bool pkgDPkgPM::Go(int OutStatusFd)
         {
            // only read the translation if there is actually a next
            // action
-           const char *translation = states[PackageOpsDone[pkg]].str;
+           const char *translation = _(states[PackageOpsDone[pkg]].str);
            char s[200];
            snprintf(s, sizeof(s), translation, pkg);
 
index 8124576430b2fa8e9de213517d5f57d86d9dec4b..a5b91b1ee1fd51b4708c8934f895501359965873 100644 (file)
 # else
 #   define _(x) gettext(x)
 # endif
+# define N_(x) x
 #else
 // apt will not use any gettext
 # define setlocale(a, b)
 # define _(x) x
+# define N_(x) x
 #endif
index 385c8ca23b7048ff06d04ca1b53192e3a5f98941..db84bc65a87abed9a6c93c58789c2d95564588ee 100644 (file)
@@ -1,3 +1,21 @@
+apt (0.6.46.1) unstable; urgency=low
+
+  * methods/gzip.cc:
+    - deal with empty files 
+  * Applied patch from Daniel Schepler to make apt bin-NMU able.  
+    (closes: bug#359634)
+  * rebuild against current g++ because of:
+    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29289
+    (closes: #390189)
+  * fix broken i18n in the dpkg progress reporting, thanks to 
+    Frans Pop and Steinar Gunderson. (closes: #389261)
+  * Merged from Christian Perrier bzr branch:
+    * fi.po: Updated to 514t. Closes: #390149
+    * eu.po: Updated to 514t. Closes: #389725
+    * vi.po: Updated to 514t. Closes: #388555
+  
+ --
+
 apt (0.6.46) unstable; urgency=low
 
   * debian/control:
@@ -32,7 +50,7 @@ apt (0.6.46) unstable; urgency=low
     - reverted MMap use in the tagfile because it does not work 
       across pipes (closes: #383487) 
   
- --
+ -- Michael Vogt <mvo@debian.org>  Thu, 21 Sep 2006 10:25:03 +0200
 
 apt (0.6.45) unstable; urgency=low
 
index a8bf88762e4fed8821d9f3f8bf480caf4cd94759..02ee734bb24c71580e82583cabb8bb7de755ed96 100755 (executable)
@@ -38,7 +38,7 @@ build:
 
 PKG=apt
 DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
-APT_DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
+APT_DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p' -e 's/\+.*$$//')
 APT_CONFVER=$(shell sed -n -e 's/^AC_DEFINE_UNQUOTED(VERSION,"\(.*\)")/\1/p' configure.in)
 APT_CVSTAG=$(shell echo "$(APT_DEBVER)" | sed -e 's/^/v/' -e 's/\./_/g')
 
index f8abd75ed7e9863600cac66e5490ed6e4cd6d794..0f0abc30c9028365104b6576a4cc6a7ad00dd5ee 100644 (file)
@@ -251,6 +251,7 @@ Debug
   pkgDPkgPM "false";
   pkgDPkgProgressReporting "false";
   pkgOrderList "false";
+  BuildDeps "false";
   
   pkgInitialize "false";   // This one will dump the configuration space
   NoLocking "false";
index 55ff332701b94105de7cc6207b4a4d59e3db7bd2..a8e816bf34b9b31b843fdc53d8a3c8d7bd399f37 100644 (file)
@@ -52,6 +52,13 @@ bool GzipMethod::Fetch(FetchItem *Itm)
    // Open the source and destination files
    FileFd From(Path,FileFd::ReadOnly);
 
+   // if the file is empty, just rename it and return
+   if(From.Size() == 0) 
+   {
+      Rename(Path, Itm->DestFile);
+      return true;
+   }
+
    int GzOut[2];   
    if (pipe(GzOut) < 0)
       return _error->Errno("pipe",_("Couldn't open pipe for %s"),Prog);