From: David Kalnischkies Date: Wed, 5 Oct 2011 16:43:00 +0000 (+0200) Subject: merge with current debian apt/experimental X-Git-Tag: 0.9.0~50^2~10 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/0fffbc8ce4cb6357f59db63db5571f46a668a66b merge with current debian apt/experimental --- 0fffbc8ce4cb6357f59db63db5571f46a668a66b diff --cc debian/changelog index 0e7ffb80f,a06abbbc0..f32f7a282 --- a/debian/changelog +++ b/debian/changelog @@@ -1,22 -1,24 +1,39 @@@ - apt (0.8.16~exp7) experimental; urgency=low + apt (0.8.16~exp7) UNRELEASEDexperimental; urgency=low + [ David Kalnischkies ] + * do not pollute namespace in the headers with using (Closes: #500198) + * use forward declaration in headers if possible instead of includes + * remove old APT_COMPATIBILITY ifdef's + * apt-pkg/deb/dpkgpm.cc: + - use std::vector instead of fixed size arrays to store args and + multiarch-packagename strings + - load the dpkg base arguments only one time and reuse them later + * cmdline/apt-get.cc: + - follow Provides in the evaluation of saving candidates, too, for + statisfying garbage package dependencies (Closes: #640590) + * apt-pkg/algorithms.cc: + - if a package is garbage, don't try to save it with FixByInstall + * apt-pkg/deb/debsrcrecords.cc: + - remove the limit of 400 Binaries for a source package (Closes: #622110) ++ * apt-pkg/deb/deblistparser.cc: ++ - fix crash when the dynamic mmap needs to be grown in ++ LoadReleaseInfo (LP: #854090) + - -- David Kalnischkies Wed, 21 Sep 2011 19:29:55 +0200 + [ Michael Vogt ] + * apt-pkg/contrib/configuration.cc: + - fix double delete (LP: #848907) + - ignore only the invalid regexp instead of all options + * apt-pkg/acquire-item.h, apt-pkg/deb/debmetaindex.cc: + - fix fetching language information by adding OptionalSubIndexTarget + * methods/https.cc: + - cleanup broken downloads properly - ++ + [ Colin Watson ] + * ftparchive/cachedb.cc: + - fix buffersize in bytes2hex + - [ David Kalnischkies ] - * apt-pkg/deb/deblistparser.cc: - - fix crash when the dynamic mmap needs to be grown in - LoadReleaseInfo (LP: #854090) + - -- Michael Vogt Wed, 05 Oct 2011 18:14:11 +0200 ++ -- David Kalnischkies Wed, 05 Oct 2011 18:40:57 +0200 apt (0.8.16~exp6) experimental; urgency=low diff --cc ftparchive/cachedb.cc index c4db88811,6eccb8d4a..f0bfa2a6d --- a/ftparchive/cachedb.cc +++ b/ftparchive/cachedb.cc @@@ -299,12 -298,16 +299,16 @@@ bool CacheDB::LoadContents(bool const & } /*}}}*/ -static string bytes2hex(uint8_t *bytes, size_t length) { +static std::string bytes2hex(uint8_t *bytes, size_t length) { - char space[65]; - if (length * 2 > sizeof(space) - 1) length = (sizeof(space) - 1) / 2; - for (size_t i = 0; i < length; i++) - snprintf(&space[i*2], 3, "%02x", bytes[i]); - return std::string(space); + char buf[3]; - string space; ++ std::string space; + + space.reserve(length*2 + 1); + for (size_t i = 0; i < length; i++) { + snprintf(buf, sizeof(buf), "%02x", bytes[i]); + space.append(buf); + } + return space; } static inline unsigned char xdig2num(char const &dig) {