summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.h
Commit message (Collapse)AuthorAgeFilesLines
* do not inline virtual destructors with d-pointersDavid Kalnischkies2014-10-131-1/+1
| | | | | | | | | | | | | | 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
* fix: Member variable 'X' is not initialized in the constructor.David Kalnischkies2014-09-271-1/+1
| | | | | Reported-By: cppcheck Git-Dch: Ignore
* fix occurrence typo in tagfile commentDavid Kalnischkies2014-09-271-1/+1
| | | | | Reported-By: codespell Git-Dch: Ignore
* Add APT::Acquire::$(host)::By-Hash=1 knob, add Acquire-By-Hash to Release fileMichael Vogt2014-05-221-1/+2
| | | | | | | The by-hash can be configured on a per-hostname basis and a Release file can indicate that it has by-hash support via a new flag. The location of the hash now matches the AptByHash spec
* improve pkgTagSection scanning and parsingDavid Kalnischkies2014-05-101-21/+42
| | | | | | Removes the 256 fields limit, deals consistently with spaces littered all over the place and is even a tiny bit faster than before. Even comes with a bunch of new tests to validate these claims.
* add support for apt-get build-dep foo.dscMichael Vogt2014-04-221-0/+2
|
* mark optional (private) symbols as hiddenDavid Kalnischkies2014-03-211-3/+5
| | | | | | | | This methods should not be used by anyone expect the library itself as they are helpers for the specific class and therefore perfect candidates for hidding. Git-Dch: Ignore
* warning: type qualifiers ignored on function return type [-Wignored-qualifiers]David Kalnischkies2014-03-131-1/+1
| | | | | Reported-By: gcc -Wignored-qualifiers Git-Dch: Ignore
* Merge remote-tracking branch 'mvo/bugfix/coverity' into debian/sidMichael Vogt2013-08-221-1/+1
|\ | | | | | | | | Conflicts: apt-pkg/tagfile.h
| * memset() pkgTagSections data to make coverity happyMichael Vogt2013-08-061-1/+1
| |
* | ensure that pkgTagFile isn't writing past Buffer lengthDavid Kalnischkies2013-08-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 91c4cc14d3654636edf997d23852f05ad3de4853 I removed the +256 from the pkgTagFile call parsing Release files as I couldn't find a mentioning of a reason for why and it was marked as XXX which suggested that at least someone else was suspicious. It turns out that it is indeed "documented", it just didn't found it at first but the changelog of apt 0.6.6 (29. Dec 2003) mentions: * Restore the ugly hack I removed from indexRecords::Load which set the pkgTagFile buffer size to (file size)+256. This is concealing a bug, but I can't fix it right now. This should fix the segfaults that folks are seeing with 0.6.[45]. The bug it is "hiding" is that if pkgTagFile works with a file which doesn't end in a double newline it will be adding it without checking if the Buffer is big enough to store them. Its also not a good idea to let the End pointer be past the end of our space, even if we don't access the data. Closes: 719629
* | fix -Wall errorsMichael Vogt2013-08-081-1/+1
|/
* fix some unitialized data membersMichael Vogt2013-08-051-1/+1
|
* fix pkgTagSection::Exists() and add testMichael Vogt2013-03-181-2/+2
|
* revert 2184.1.3: forward declaration instead of headersDavid Kalnischkies2011-12-131-0/+4
| | | | | The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
* use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-191-2/+4
|
* do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-191-1/+1
|
* merge with debian/experimentalDavid Kalnischkies2011-09-131-1/+1
|\
| * merged from the debian-sid branchMichael Vogt2011-08-151-1/+1
| |\
| | * fix some cppcheck: (warning) Member variable is not initialized in the ↵David Kalnischkies2011-08-111-1/+1
| | | | | | | | | | | | constructor.
* | | Support large files in the complete toolset. Indexes of thisDavid Kalnischkies2011-09-131-2/+2
|/ / | | | | | | size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
* | * [ABI-Break] Implement EDSP in libapt-pkg so that all front-ends whichMichael Vogt2011-06-081-13/+8
|\ \ | |/ |/| | | | | * [ABI-Break] merge lp:~mvo/apt/sha512-template to add support for sha512 * [ABI-Break] merge lp:~mvo/apt/dpointer to support easier extending without breaking the ABI
| * apt-pkg/tagfile.h: add dpointer placeholder, make destructor virtual; ↵Michael Vogt2011-01-281-6/+4
| | | | | | | | apt-pkg/deb/debsystem.h: make destructor virtual
| * apt-pkg/tagfile.{cc,h}: add comment, remove "inline" from pkgTagFile::Offset()Michael Vogt2011-01-271-1/+3
| |
| * apt-pkg/tagfile.{cc,h}: add dpointer to pkgTagFileMichael Vogt2011-01-271-12/+7
| |
* | - try downloading clearsigned InRelease before trying Release.gpgDavid Kalnischkies2011-01-201-0/+2
|/ | | | * apt-pkg/deb/deblistparser.cc: - rewrite LoadReleaseInfo to cope with clearsigned Releasefiles
* * apt-pkg/pkgcache.h:David Kalnischkies2010-06-031-0/+1
| | | | | - switch {,Install-}Size to unsigned long long * apt-pkg/depcache.cc: - deal with long long, not with int to remove 2GB Limit (LP: #250909)
* * apt-pkg/depcache.cc:David Kalnischkies2010-03-141-1/+14
| | | | | - remove Auto-Installed information from extended_states together with the package itself (Closes: #572364)
* [ABI break] support '#' in apt.conf and /etc/apt/preferencesMichael Vogt2009-06-091-1/+4
| | | (closes: #189866)
* * implement sha256/sha1/md5 checking with proper backward compatibilityMichael Vogt2007-07-261-2/+2
| | | | and fallback
* * removed the pragma messMichael Vogt2006-10-021-3/+0
|
* * apt-pkg/tagfile.cc,h:Michael Vogt2006-10-021-3/+4
| | | | - make the internal buffer grow dynamically if required
* * apt-pkg/tagfile.h:Michael Vogt2006-09-301-1/+1
| | | | | - increase the buffer in tagfile.cc for now, this really needs to become a dynamic buffer
* * apt-pkg/tagfile.cc, tagfile.h:Michael Vogt2006-09-151-2/+0
| | | | | - reverted the mmap patch again, it caused too much trouble with pipes etc
* * suport both MMapable files and non-mmapable filesMichael Vogt2006-07-261-1/+4
|
* * apt-pkg/tagfile.{cc,h}:Michael Vogt2006-04-261-3/+2
| | | | - use mmap for the tagfile code (closes: #350025)
* Fix api breakage caused when attempting to support bloc...Arch Librarian2004-09-201-4/+3
| | | | | | | Author: doogie Date: 2003-05-19 17:13:57 GMT Fix api breakage caused when attempting to support blocks larger than 32k, by backing out the patch.
* Fix status file parser so that if a record is larger th...Arch Librarian2004-09-201-3/+4
| | | | | | | Author: doogie Date: 2003-04-27 05:59:14 GMT Fix status file parser so that if a record is larger than 32k, the buffer size will be doubled, and the read attempted again.
* Fixes from Christoph PfistererArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 2001-10-04 05:13:23 GMT Fixes from Christoph Pfisterer
* Tag file can read from unseekable objectsArch Librarian2004-09-201-3/+2
| | | | | | Author: jgg Date: 2001-04-22 05:42:52 GMT Tag file can read from unseekable objects
* Pedantic fixesArch Librarian2004-09-201-3/+3
| | | | | | Author: jgg Date: 2001-03-11 07:22:19 GMT Pedantic fixes
* Join with aliencodeArch Librarian2004-09-201-15/+34
| | | | | | Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
* Fixed a small memory leakArch Librarian2004-09-201-2/+3
| | | | | | Author: jgg Date: 1999-07-03 06:45:40 GMT Fixed a small memory leak
* Release supportArch Librarian2004-09-201-2/+4
| | | | | | Author: jgg Date: 1998-12-14 02:23:46 GMT Release support
* OptimizationsArch Librarian2004-09-201-1/+3
| | | | | | Author: jgg Date: 1998-12-07 07:26:19 GMT Optimizations
* More tagfile accessorsArch Librarian2004-09-201-2/+6
| | | | | | Author: jgg Date: 1998-11-28 03:54:29 GMT More tagfile accessors
* Patchs for apt-cdromArch Librarian2004-09-201-2/+10
| | | | | | Author: jgg Date: 1998-11-27 01:14:06 GMT Patchs for apt-cdrom
* More progress updatesArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1998-08-26 04:52:23 GMT More progress updates
* Comment touch upsArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1998-07-19 21:24:11 GMT Comment touch ups
* Class File name change to FileFdArch Librarian2004-09-201-3/+3
| | | | | | Author: jgg Date: 1998-07-19 04:42:10 GMT Class File name change to FileFd