summaryrefslogtreecommitdiff
path: root/apt-inst
AgeCommit message (Collapse)AuthorFilesLines
2014-03-13follow method attribute suggestions by gccDavid Kalnischkies2-4/+4
Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies8-13/+32
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)
2014-03-13warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies4-5/+5
Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
2014-03-13warning: cast from type A to type B casts away qualifiers [-Wcast-qual]David Kalnischkies1-3/+3
Git-Dch: Ignore Reported-By: gcc -Wcast-qual
2014-03-13warning: extra ‘;’ [-Wpedantic]David Kalnischkies1-76/+76
Git-Dch: Ignore Reported-By: gcc -Wpedantic
2014-02-22Add support for data.tar, control.tar and control.tar.xzGuillem Jover1-11/+10
Sync the deb(5) format support with latest dpkg, by allowing uncompressed tar members and xz compressed control.tar. This also refactors the control.tar member extraction by using ExtractTarMember(), which also means future changes only need to be implemented in a single place.
2014-02-22DebFile: Refactor ExtractTarMember() out from ExtractArchive()Guillem Jover2-5/+13
Generalize DebFile::ExtractArchive() to take a member base name, so that we can reuse it for control.tar member extraction too.
2014-02-22ExtractTar: Allow an empty decompressor programGuillem Jover1-0/+6
This allows for uncompressed tar files, as the decompressor process will not get interposed in-between the file descriptors.
2014-02-22Fix typos in documentation (codespell)Michael Vogt4-6/+6
2014-02-11use utimes instead of utimensat/futimensDavid Kalnischkies1-4/+5
cppcheck complains about the obsolete utime as it was removed in POSIX1.2008 and recommends usage of utimensat/futimens instead as those are in POSIX and so commit 9ce3cfc9 switched to them. It is just that they aren't as portable as the standard suggests: At least our kFreeBSD and Hurd ports stumble over it at runtime. So to make both, the ports and cppcheck happy, we use utimes instead. Closes: 738567
2014-01-16correct some style/performance/warnings from cppcheckDavid Kalnischkies1-11/+9
The most "visible" change is from utime to utimensat/futimens as the first one isn't part of POSIX anymore. Reported-By: cppcheck Git-Dch: Ignore
2013-10-07fix libapt-inst for >2G debs (closes: #725483)Michael Vogt1-3/+3
2013-09-26compression-neutral message for missing data.tar memberDavid Kalnischkies1-2/+1
It even reuses the message used for the other check-for members, so one less message to translate (good, as not that many people will ever see it). Closes: 722710
2013-09-12don't truncate 100 char long paths in tar extractionOskari Saarenmaa1-13/+11
When a data.tar.{gz,xz} contains a path name that is exactly 100 characters long, it will get truncated to 99 chars upon extraction in ExtractTar::Go(). Using all of the 100 available characters for the filename seems to be new behaviour in gnu tar. Closes: #689582 Thanks: Mika Eloranta for the testcase!
2013-06-24delete Memb on read-error in arfileNiels Thykier1-0/+3
Git-Dch: Ignore
2013-06-09depend on libapt-pkg in the libapt-inst build processDavid Kalnischkies1-0/+1
fixing parallel build in the handcrafted buildsystem is a pain, so its not enabled by default, but its works for me – sometimes Git-Dch: Ignore
2013-06-09don't explicitly init ExtractTar InFd with invalid fdDavid Kalnischkies1-1/+0
The default constructor of the FileFd will kick in anyway, which will know that the Fd is invalid while with this explicit call it must be assumed that the fd is in fact valid, which might generate errors in the future
2013-03-10various simple changes to fix cppcheck warningsDavid Kalnischkies1-2/+1
2012-05-10* apt-inst/deb/debfile.h:David Kalnischkies1-0/+4
- readd 'md5.h' to the uncleaned header includes to make qapt build against us again unchanged to unblock transition (Closes: #669163)
2012-04-20merge from the lp:~mvo/apt/mvo branchMichael Vogt1-1/+1
2012-04-19* apt-inst/contrib/extracttar.cc:Michael Vogt1-1/+1
- ensure that in StartGzip the InFd is set to "AutoClose" to ensure that the pipe is closed when InFd is closed. This fixes a Fd leak (LP: #985452)
2012-04-11prepare new experimtnal uploadMichael Vogt1-1/+1
2012-03-22* apt-inst/database.{cc,h}, apt-inst/deb/dpkgdb.{cc,h}:David Kalnischkies7-719/+4
- drop instead of fix as it is only needed if you want to reimplement dpkg and comes straight from the beginning of last decade (Closes: #663372) * apt-inst/deb/debfile.cc: - {Extract,Merge}Control() is another instance of "lets reimplement dpkg" so shot of this code before someone ends up using this…
2012-03-20* methods/rred.cc:David Kalnischkies2-3/+2
- check return of writev() as gcc recommends * methods/mirror.cc: - check return of chdir() as gcc recommends * apt-pkg/deb/dpkgpm.cc: - check return of write() a gcc recommends * apt-inst/deb/debfile.cc: - check return of chdir() as gcc recommends * apt-inst/deb/dpkgdb.cc: - check return of chdir() as gcc recommends
2012-03-04fix "(style) Statements following return, break, continue, goto or throwDavid Kalnischkies1-4/+2
will never be executed." from cppcheck. The fd was closed only after a return, so invert the order of lines and be happy
2011-12-13revert 2184.1.3: forward declaration instead of headersDavid Kalnischkies4-0/+13
The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
2011-12-13revert 2184.1.2: do not pollute namespace in headersDavid Kalnischkies1-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
2011-09-19use forward declaration in headers if possible instead of includesDavid Kalnischkies12-7/+35
2011-09-19do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies10-21/+19
2011-09-14* [abi-break] Support large files in the complete toolset. Indexes of thisMichael Vogt1-1/+1
* bump ABI version
2011-09-13Support large files in the complete toolset. Indexes of thisDavid Kalnischkies1-1/+1
size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies8-2/+19
2011-06-29merge lp:~mvo/apt/abi-breakMichael Vogt1-1/+1
2011-05-17remove Size >= 0 check as Itm.Size is an unsigned variable (clang warning)David Kalnischkies1-1/+1
2011-04-16fix a bunch of cppcheck warnings/errors based on a patch byDavid Kalnischkies1-4/+10
Niels Thykier, thanks! (Closes: #622805)
2011-02-28* apt-inst/deb/debfile.cc:David Kalnischkies1-16/+26
- support data.tar's compressed with any configured compressor
2011-02-24* ftparchive/contents.cc:David Kalnischkies1-1/+1
- remove ExtractArchive codecopy from apt-inst/deb/debfile.cc
2011-02-22* ftparchive/multicompress.cc, apt-inst/deb/debfile.cc:David Kalnischkies1-1/+7
- support xz compressor to create xz-compressed Indexes and be able to open data.tar.xz files * ftparchive/writer.cc: - include xz-compressed Packages and Sources files in Release file
2011-02-22* ftparchive/multicompress.cc, apt-inst/deb/debfile.cc:David Kalnischkies1-1/+7
- support xz compressor to create xz-compressed Indexes and be able to open data.tar.xz files
2011-01-13* apt-inst/contrib/extracttar.cc:David Kalnischkies1-4/+8
- let apt-utils work with encoded tar headers if uid/gid are large. Thanks to Nobuhiro Hayashi for the patch! (Closes: #330162)
2011-01-12FristOwner is never used in the blamed history and gcc-4.6 complains nowDavid Kalnischkies1-3/+1
2010-12-03Permit base256 encoded value in the numeric field of tar header.Nobuhiro Hayashi1-4/+8
2010-06-04Switch away from the now deprecated methods for Cache buildingDavid Kalnischkies1-1/+1
2010-03-12apt-inst/contrib/arfile.h: Add public ARArchive::Members() which returns the ↵Julian Andres Klode1-0/+1
list of members.
2010-02-18we break the ABI, so let use increase the ABI number :)David Kalnischkies1-1/+1
(This is the revert of the glibc-abi-compatibility-hack)
2010-01-30* apt-pkg/contrib/macros.h:David Kalnischkies1-1/+1
- move the header system.h with a new name to the public domain, to be able to use it in other headers (Closes: #567662)
2009-12-14apt-inst/makefile: include libversion.makMichael Vogt1-0/+3
2009-12-12decrease the libapt-inst major version again to 1.1 as the increaseDavid Kalnischkies1-1/+1
was a backport error and is not needed (and destroys our non-abi-break hack)
2009-10-24Bumped libapt version and excluded eglibc from SONAME. (Closes: #448249)David Kalnischkies1-2/+1
Backported from lp:~mvo/apt/debian-experimental Based on patch by Eugene V. Lyubimkin
2009-09-24* apt-pkg/deb/dpkgpm.cc:Michael Vogt1-1/+1
- when tcgetattr() returns non-zero skip all pty magic (thanks to Simon Richter, closes: #509866) * apt-inst/contrib/arfile.cc: - show propper error message for Invalid archive members