summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debsrcrecords.cc
Commit message (Collapse)AuthorAgeFilesLines
* enforce verify of filesize in 'apt-get source'David Kalnischkies2016-03-141-0/+1
| | | | | The structure we parse the data into has a dedicated size field, but it tends to be easier to handle it as a (very weak) checksum.
* support comments in debian/control parsingDavid Kalnischkies2016-01-021-4/+10
| | | | | | | | | Now (55153bf94ff28a23318e79aa48242244c4d82b3c) that pkgTagFile can be told to deal with all sorts of comments we can use this mode to parse dsc (as by catch) and debian/control files properly even in the wake of multiline fields spliced with comments like Build-Depends. Closes: 806775
* Convert most callers of isspace() to isspace_ascii()Julian Andres Klode2015-12-271-3/+3
| | | | | This converts all callers that read machine-generated data, callers that might work with user input are not converted.
* make all d-pointer * const pointersDavid Kalnischkies2015-08-101-1/+1
| | | | | | | | | | | | | | 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/+4
| | | | | | | | 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
* merge debian/sid into debian/experimentalDavid Kalnischkies2015-03-161-6/+32
|\
| * use 'best' hash for source authenticationDavid Kalnischkies2014-11-101-44/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Collect all hashes we can get from the source record and put them into a HashStringList so that 'apt-get source' can use it instead of using always the MD5sum. We therefore also deprecate the MD5 struct member in favor of the list. While at it, the parsing of the Files is enhanced so that records which miss "Files" (aka MD5 checksums) are still searched for other checksums as they include just as much data, just not with a nice and catchy name. This is a cherry-pick of 1262d35 with some dirty tricks to preserve ABI. LP: 1098738
* | replace ignore-deprecated #pragma dance with _PragmaDavid Kalnischkies2014-11-081-18/+2
| | | | | | | | | | | | | | | | | | For compatibility we use/provide and fill quiet some deprecated methods and fields, which subsequently earns us a warning for using them. These warnings therefore have to be disabled for these codeparts and that is what this change does now in a slightly more elegant way. Git-Dch: Ignore
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-06-181-1/+2
|\| | | | | | | | | Conflicts: debian/changelog
| * use free() instead of delete[] in debSrcRecordParser::~debSrcRecordParserMichael Vogt2014-05-271-1/+2
| | | | | | | | | | The Buffer was allocated using strndup() so we need to free it using free() instead of delete[]
* | Fix more warnings from clangMichael Vogt2014-05-291-2/+3
| | | | | | | | | | | | | | | | | | Reported-By: clang++ -Werror Conflicts: apt-pkg/acquire-item.cc apt-pkg/acquire-item.h apt-pkg/deb/debmetaindex.h
* | use 'best' hash for source authenticationDavid Kalnischkies2014-05-091-71/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Collect all hashes we can get from the source record and put them into a HashStringList so that 'apt-get source' can use it instead of using always the MD5sum. We therefore also deprecate the MD5 struct member in favor of the list. While at it, the parsing of the Files is enhanced so that records which miss "Files" (aka MD5 checksums) are still searched for other checksums as they include just as much data, just not with a nice and catchy name. LP: 1098738
* | Merge remote-tracking branch 'mvo/feature/build-dep-dsc2' into ↵Michael Vogt2014-05-081-0/+19
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | debian/experimental Conflicts: apt-pkg/deb/debindexfile.cc apt-pkg/deb/debindexfile.h apt-pkg/deb/debsrcrecords.cc
| * | create debIFTypeDscFile typeMichael Vogt2014-04-241-2/+2
| | |
| * | add support for apt-get build-dep foo.dscMichael Vogt2014-04-221-0/+19
| |/
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-05-071-5/+12
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: apt-pkg/cachefilter.h apt-pkg/contrib/fileutl.cc apt-pkg/contrib/netrc.h apt-pkg/deb/debsrcrecords.cc apt-pkg/init.h apt-pkg/pkgcache.cc debian/apt.install.in debian/changelog
| * cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-2/+9
| | | | | | | | | | | | | | | | 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)
| * warning: useless cast to type A [-Wuseless-cast]David Kalnischkies2014-03-131-1/+1
| | | | | | | | | | Git-Dch: Ignore Reported-By: gcc -Wuseless-cast
| * implement BuildProfileSpec support as dpkg has in 1.17.2Johannes Schauer2014-03-131-1/+1
| | | | | | | | | | | | | | | | Build-dependencies are now able to include a <profile.foo …> specification limiting usage similar to already supported [arch …]. More details: https://wiki.debian.org/BuildProfileSpec Closes: 661537
* | re-add compat pkgSrcRecords::File::MD5HashMichael Vogt2013-02-281-0/+3
| |
* | cleanup the hash iteration. unfortunately there is no 1:1 mapping from ↵Michael Vogt2013-01-311-21/+15
| | | | | | | | Hashes::SupporedHashes to the tag name
* | fix skipping of already downloaded files and add some FIXMEsMichael Vogt2013-01-141-4/+9
| |
* | first iteration that adds support for checksums-{sha512,sha256}Michael Vogt2013-01-141-54/+75
|/
* * apt-pkg/deb/debsrcrecords.cc:David Kalnischkies2011-09-211-17/+24
| | | - remove the limit of 400 Binaries for a source package (Closes: #622110)
* do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-191-2/+4
|
* reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-0/+2
|
* support every compression we have a compressor configuredDavid Kalnischkies2011-02-271-3/+6
|
* * apt-pkg/deb/debsrcrecords.cc:David Kalnischkies2011-02-221-1/+2
| | | - support xz-compressed source v3 debian.tar files
* Ignore :qualifiers after package name in build dependenciesDavid Kalnischkies2009-11-291-2/+3
| | | | for now as long we don't understand them (Closes: #558103)
* use "diff" filetype for .debian.tar.* files (Closes: #554898) inDavid Kalnischkies2009-11-271-1/+7
| | | | | apt-pkg/deb/debsrcrecords.cc as source format v3 uses this name scheme for their "diff" files.
* merged r1811..1815 from lp:~donkult/apt/experimentalMichael Vogt2009-06-301-0/+8
|
* * Applied patch from Guillem Jover <guillem.jover@nokia.com> to addOtavio Salvador2007-07-281-1/+1
| | | support to add lzma support (closes: #408201)
* * Removed the more leftover #pragma interface/implementationMichael Vogt2007-06-081-4/+0
|\ | | | | closes: #306937 (thanks to Andreas Henriksson for the patch)
| * * remove all the remaining #pragma implementationMichael Vogt2007-06-081-4/+0
| |
* | * apt-pkg/deb/debsrcrecords.{cc,h}:Michael Vogt2006-12-011-1/+1
| | | | | | | | - cast correct
* | * apt-pkg/deb/debsrcrecords.cc:Michael Vogt2006-12-011-1/+1
| | | | | | | | - fix off-by-one problem
* | * apt-pkg/deb/debsrcrecords.{cc,h}:Michael Vogt2006-11-301-19/+9
|/ | | | - make the buffer dynmaic
* * Implement an ugly workaround for the 10000-character ...Arch Librarian2004-09-201-4/+25
| | | | | | | | | | Author: mdz Date: 2004-03-17 05:58:54 GMT * Implement an ugly workaround for the 10000-character limit on the Binaries field in debSrcRecordParser, until such time as some things can be converted over to use STL data types (ABI change) (Closes: #236688) * Increase default tagfile buffer from 32k to 128k; this arbitrary limit should also be removed someday (Closes: #174945)
* Add --arch-only option for apt-get build-dep only only ...Arch Librarian2004-09-201-2/+5
| | | | | | | | | Author: tausq Date: 2001-11-04 17:09:18 GMT Add --arch-only option for apt-get build-dep only only process arch-dependent build-dependencies. Small change to srcrecord class; bumped minor so number to 3.3
* Join with aliencodeArch Librarian2004-09-201-28/+69
| | | | | | Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
* working apt-get sourceArch Librarian2004-09-201-3/+3
| | | | | | Author: jgg Date: 1999-04-07 05:30:17 GMT working apt-get source
* Source record file list parsingArch Librarian2004-09-201-1/+41
| | | | | | Author: jgg Date: 1999-04-04 08:07:39 GMT Source record file list parsing
* Source record parsingArch Librarian2004-09-201-0/+63
Author: jgg Date: 1999-04-04 01:17:29 GMT Source record parsing