summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debrecords.cc
Commit message (Collapse)AuthorAgeFilesLines
* ensure filesize of deb is included in the hashes listDavid Kalnischkies2016-06-221-0/+3
| | | | | | | Filesize is a silly hash all by itself, but in combination with others it can be a strong opponent, so ensuring that it is in the list of hashes and hence checked by the normal course of action the acquire process takes is a good thing.
* Convert package names from Packages files to lower caseJulian Andres Klode2015-12-111-1/+7
| | | | | | | | | dpkg does that when reading package files, so we should do the same. This only deals with parsing names from binary package paragraphs, it does not look at source package names and/or the list of binaries in a dsc file. Closes: #807012
* fix memory leaks reported by -fsanitizeDavid Kalnischkies2015-08-101-0/+4
| | | | | | | | Various small leaks here and there. Nothing particularily big, but still good to fix. Found by the sanitizers while running our testcases. Reported-By: gcc -fsanitize Git-Dch: Ignore
* make all d-pointer * const pointersDavid Kalnischkies2015-08-101-3/+3
| | | | | | | | | | | | | | Doing this disables the implicit copy assignment operator (among others) which would cause hovac if used on the classes as it would just copy the pointer, not the data the d-pointer points to. For most of the classes we don't need a copy assignment operator anyway and in many classes it was broken before as many contain a pointer of some sort. Only for our Cacheset Container interfaces we define an explicit copy assignment operator which could later be implemented to copy the data from one d-pointer to the other if we need it. Git-Dch: Ignore
* add d-pointer, virtual destructors and de-inline de/constructorsDavid Kalnischkies2015-06-161-0/+7
| | | | | | | | To have a chance to keep the ABI for a while we need all three to team up. One of them missing and we might loose, so ensuring that they are available is a very tedious but needed task once in a while. Git-Dch: Ignore
* properly implement pkgRecord::Parser for *.deb filesDavid Kalnischkies2015-03-161-55/+53
| | | | | | | | | Implementing FileName() works for most cases for us, but other frontends might need more and even for us its not very stable as the normal Jump() implementation is pretty bad on a deb file and produce errors on its own at times. So, replacing this makeshift with a complete implementation by mostly just shuffling code around.
* fix compile and tests errorDavid Kalnischkies2014-10-131-1/+1
| | | | | | I am pretty sure I did that before committing broken stuff… Git-Dch: Ignore
* do not inline virtual destructors with d-pointersDavid Kalnischkies2014-10-131-0/+2
| | | | | | | | | | | | | | Reimplementing an inline method is opening a can of worms we don't want to open if we ever want to us a d-pointer in those classes, so we do the only thing which can save us from hell: move the destructors into the cc sources and we are good. Technically not an ABI break as the methods inline or not do the same (nothing), so a program compiled against the old version still works with the new version (beside that this version is still in experimental, so nothing really has been build against this library anyway). Git-Dch: Ignore
* parse and retrieve multiple Descriptions in one recordDavid Kalnischkies2014-05-091-20/+40
| | | | | | | | It seems unlikely for now that proper archives will carry multiple Description-* stanzas in the Packages (or Translation-*) file, but sometimes apt eats its own output as shown by the usage of the CD team and it would be interesting to let apt output multiple translations e.g. in 'apt-cache show'.
* use HashStringList in the acquire systemDavid Kalnischkies2014-05-091-30/+11
| | | | | | | | | | | | | It is not very extensible to have the supported Hashes hardcoded everywhere and especially if it is part of virtual method names. It is also possible that a method does not support the 'best' hash (yet), so we might end up not being able to verify a file even though we have a common subset of supported hashes. And those are just two of the cases in which it is handy to have a more dynamic selection. The downside is that this is a MAJOR API break, but the HashStringList has a string constructor for compatibility, so with a bit of luck the few frontends playing with the acquire system directly are okay.
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-1/+7
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* enable FileFd to guess the compressor based on the filename if requested orDavid Kalnischkies2011-12-101-1/+1
| | | | | to search for compressed silbings of the given filename and use this guessing instead of hardcoding Gzip compression
* use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-191-0/+2
|
* do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-191-2/+4
|
* merge with debian/experimentalDavid Kalnischkies2011-09-131-1/+10
|\
| * merged from the debian-sid branchMichael Vogt2011-08-151-1/+1
| |\
| | * cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-111-1/+1
| | | | | | | | | | | | | | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
| * | [ABI break] merged patch from Jonathan Thomas to have a newMichael Vogt2011-07-281-0/+9
| | | | | | | | | | | | RecordField() function in the pkgRecorder parser. Many thanks Thomas
* | | reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-0/+2
|/ /
* / add sha512 support in the client now as wellMichael Vogt2011-02-251-1/+9
|/
* Switch FileFd to not transparently gunzip, since that breaks code which ↵martin@piware.de2010-06-241-1/+1
| | | | expects the compressed contents to stay (such as the copy backend, or when using file:// repositories. Instead, introduce a new ReadOnlyGzip mode and use that where needed
* * apt-pkg/deb/debrecords.cc:Michael Vogt2010-05-051-1/+2
|\ | | | | - fix max tag buffer size (LP: #545336, closes: #578959)
| * * apt-pkg/deb/debrecords.cc:Michael Vogt2010-05-051-1/+2
| | | | | | - fix max tag buffer size (LP: #545336, closes: #578959)
* | [BREAK] add possibility to download and use multiplyDavid Kalnischkies2009-11-261-3/+9
|/ | | | | | | Translation files, configurable with Acquire::Languages accessable with APT::Configuration::getLanguages() and as always with documentation in apt.conf. The commit also includes a very very simple testapp.
* * Applied patch from Daniel Burrows <dburrows@debian.org> to add supportOtavio Salvador2007-10-251-0/+8
| | | for the Homepage field, closes: #447970.
* * implement sha256/sha1/md5 checking with proper backward compatibilityMichael Vogt2007-07-261-0/+8
| | | | and fallback
* * merged the remaining bits from the apt--no-pragma branchMichael Vogt2007-06-091-3/+0
|\
| * * remove all the remaining #pragma implementationMichael Vogt2007-06-081-3/+0
| |
* | * merged the debian/experimental changes backMichael Vogt2007-06-061-2/+21
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into the debian/sid branch * merged from Christian Perrier: * mr.po: New Marathi translation Closes: #416806 * zh_CN.po: Updated by Eric Pareja Closes: #416822 * tl.po: Updated by Eric Pareja Closes: #416638 * gl.po: Updated by Jacobo Tarrio * da.po: Updated by Claus Hindsgaul * fr.po: Remove a non-breakable space for usability * ru.po: Updated Russian translation. Closes: #405476 * *.po: Unfuzzy after upstream typo corrections * buildlib/archtable: - added support for sh3/sh4 (closes: #424870) - added support for m32r (closes: #394096) * buildlib/systemtable: - added support for lpia * configure.in: - check systemtable for architecture mapping too * Package that contains tall the new features * Removed all #pragma interface/implementation * Branch that contains tall the new features: * translated package descriptions * task install support * automatic dependency removal (thanks to Daniel Burrows) * merged support for the new dpkg "Breaks" field (thanks to Ian Jackson) * handle network failures more gracefully on "update" * support for unattended-upgrades (via unattended-upgrades package) * added apt-transport-https method * merged "install-recommends" branch (ABI break): - new "--install-recommends" - install new recommends on "upgrade" if --install-recommends is given - new "--fix-policy" option to install all packages with unmet important dependencies (usefull with --install-recommends to see what not-installed recommends are on the system) - fix of recommended packages display (only show CandidateVersion fix or-group handling) * merged "install-task" branch (use with "apt-get install taskname^") * Applied patch from Daniel Schepler to make apt bin-NMU able. * eu.po: Updated * fix apt-get dist-upgrade * fix warning if no /var/lib/apt/extended_states is present * don't download Translations for deb-src sources.list lines * apt-pkg/tagfile.cc: - support not-mmapable files again * added support for i18n of the package descriptions * added support for aptitude like auto-install tracking (a HUGE HUGE thanks to Daniel Burrows who made this possible) * synced with the http://people.debian.org/~mvo/bzr/apt/debian-sid branch * build from http://people.debian.org/~mvo/bzr/apt/debian-experimental * apt-pkg/depcache.cc: - added Debug::pkgDepCache::AutoInstall (thanks to infinity) * apt-pkg/acquire-item.cc: - fix missing chmod() in the new aquire code (thanks to Bastian Blank, Closes: #367425) * merged from http://www.perrier.eu.org/debian/packages/d-i/level4/apt-main: * sk.po: Completed to 512t * eu.po: Completed to 512t * fr.po: Completed to 512t * sv.po: Completed to 512t * Update all PO and the POT. Gives 506t6f for formerly complete translations * Fix a incorrect example in the man-page (closes: #282918)
| * \ * merged from apt--mvoMichael Vogt2007-01-121-1/+1
| |\ \
| * | | Port DDTP to APT 0.6 branchOtavio Salvador2005-03-231-2/+21
| | |/ | |/|
* | | * implement SourceVer() in pkgRecords Michael Vogt2007-05-231-1/+27
| |/ |/| | | (thanks to Daniel Burrows for the patch!)
* | * apt-pkg/deb/debrecords.cc:Michael Vogt2006-12-191-1/+1
|/ | | | | | - return the correct SHA1Hash() * methods/http.cc: - send VERSION of apt in the User-Agent string
* Alfredo's vendor stuffArch Librarian2004-09-201-2/+10
| | | | | | Author: jgg Date: 2001-03-13 06:51:46 GMT Alfredo's vendor stuff
* Join with aliencodeArch Librarian2004-09-201-3/+20
| | | | | | Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
* Fixed parsing of source: linesArch Librarian2004-09-201-3/+7
| | | | | | Author: jgg Date: 1999-05-18 05:28:03 GMT Fixed parsing of source: lines
* working apt-get sourceArch Librarian2004-09-201-1/+9
| | | | | | Author: jgg Date: 1999-04-07 05:30:17 GMT working apt-get source
* Changed ie to egArch Librarian2004-09-201-18/+6
| | | | | | Author: jgg Date: 1999-03-29 19:28:52 GMT Changed ie to eg
* Fixed another parser glitchArch Librarian2004-09-201-2/+3
| | | | | | Author: jgg Date: 1999-02-22 03:30:06 GMT Fixed another parser glitch
* Moved strutl.hArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1999-01-27 02:48:52 GMT Moved strutl.h
* Archive acquire codeArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1998-11-13 04:23:26 GMT Archive acquire code
* SyncArch Librarian2004-09-201-1/+57
| | | | | | Author: jgg Date: 1998-10-08 04:54:58 GMT Sync
* Package Record parserArch Librarian2004-09-201-0/+32
Author: jgg Date: 1998-08-09 00:51:33 GMT Package Record parser