]> git.saurik.com Git - apt.git/commitdiff
apt-pkg/acquire-item.cc: Use stat buffer if stat was 0.8.13.1
authorJulian Andres Klode <jak@debian.org>
Sat, 2 Apr 2011 19:00:45 +0000 (21:00 +0200)
committerJulian Andres Klode <jak@debian.org>
Sat, 2 Apr 2011 19:00:45 +0000 (21:00 +0200)
successful, not if it failed (Closes: #620546)

apt-pkg/acquire-item.cc
debian/changelog

index 2ecb8ed6ea409d52e42dab9568215a46dabbd060..184802ca38d45bb64dc1fb837d7e9a9fa933e18a 100644 (file)
@@ -841,7 +841,7 @@ string pkgAcqIndex::Custom600Headers()
    if (ShortDesc().find("Translation") != 0)
       msg += "\nFail-Ignore: true";
    struct stat Buf;
-   if (stat(Final.c_str(),&Buf) != 0)
+   if (stat(Final.c_str(),&Buf) == 0)
       msg += "\nLast-Modified: " + TimeRFC1123(Buf.st_mtime);
 
    return msg;
index c7bb429ff963b6d2efaccabe3b36f42fc3d4b047..2dacf93f5ee221ed59600bcc128907305ebe75de 100644 (file)
@@ -1,3 +1,10 @@
+apt (0.8.13.1) unstable; urgency=low
+
+  * apt-pkg/acquire-item.cc: Use stat buffer if stat was
+    successful, not if it failed (Closes: #620546)
+
+ -- Julian Andres Klode <jak@debian.org>  Sat, 02 Apr 2011 20:55:35 +0200
+
 apt (0.8.13) unstable; urgency=low
 
   [ Thorsten Spindler ]