From: Michael Vogt Date: Mon, 4 Apr 2011 14:49:21 +0000 (+0200) Subject: merged from lp:~donkult/apt/sid X-Git-Tag: 0.8.13.2~1 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/bee9ae120eeaf9f43c9688440fc3fdb8d02bf94a?hp=410327e1ee0fac0c28a95e45ea75f7359cc8dcb4 merged from lp:~donkult/apt/sid --- diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index cf88ded7b..39b9feff2 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -840,7 +840,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; diff --git a/debian/changelog b/debian/changelog index e669077fe..ba4455a60 100644 --- a/debian/changelog +++ b/debian/changelog @@ -34,6 +34,13 @@ apt (0.8.13.1) UNRELEASED; urgency=low -- David Kalnischkies Tue, 29 Mar 2011 13:12:45 +0200 +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 Sat, 02 Apr 2011 20:55:35 +0200 + apt (0.8.13) unstable; urgency=low [ Thorsten Spindler ]