summaryrefslogtreecommitdiff
path: root/cmdline
AgeCommit message (Collapse)AuthorFilesLines
2014-07-08Only allow "apt-get build-dep path" when path starts with ./ or /Michael Vogt1-2/+7
This avoid the subtle problem that someone might have a directory with the same package name as the build-depends he/she is trying to fetch. Also print a note that the specific file/dir is used.
2014-07-08Fix ar and tar code to be LFS-safeGuillem Jover2-2/+2
This is an ABI break. Closes: #742882
2014-06-18correct 'apt-cache stats' to include moreDavid Kalnischkies1-24/+32
It still doesn't reflect the size the cache has on the disk compared to what is given as total size (90 vs 103 MB), but by counting all structs in we are at least a bit closer to the reality. Git-Dch: ignore
2014-06-18cleanup datatypes mix used in binary cacheDavid Kalnischkies1-1/+1
We had a wild mixture of (unsigned) int, long and long long here without much sense, so this commit adds a few typedefs to get some sense in the typesystem and ensures that a ID isn't sometimes computed as int, stored as long and compared with a long long… as this could potentially bite us later on as the size of the archive only increases over time.
2014-06-18Merge remote-tracking branch 'donkult/debian/sid' into debian/experimentalMichael Vogt2-20/+24
Conflicts: apt-private/private-install.cc
2014-06-18show our broken packages message in 'apt' solverDavid Kalnischkies2-20/+24
2014-06-18Merge remote-tracking branch 'mvo/feature/drop-rights' into debian/experimentalMichael Vogt2-0/+5
Conflicts: apt-pkg/contrib/fileutl.cc apt-pkg/contrib/fileutl.h
2014-06-18Merge remote-tracking branch 'mvo/feature/hash-stats' into debian/experimentalMichael Vogt1-1/+45
Conflicts: apt-pkg/acquire-item.cc apt-pkg/acquire-item.h apt-pkg/deb/debmetaindex.h apt-pkg/pkgcache.cc test/integration/test-apt-ftparchive-src-cachedb
2014-06-18Provide ShowHashTableStats functionMichael Vogt1-55/+43
2014-06-18improve formating of the hash statsMichael Vogt1-15/+15
2014-06-18Merge branch 'debian/sid' into debian/experimentalMichael Vogt5-20/+31
Conflicts: debian/changelog
2014-06-11DropPrivs in the solvers (just to be on the safe side)Michael Vogt2-0/+5
2014-06-10Merge remote-tracking branch 'mvo/feature/apt-update-info' into debian/sidMichael Vogt1-0/+1
2014-06-10Merge remote-tracking branch ↵Michael Vogt1-0/+9
'mvo/bugfix/apt-get-source-unauthenticated-warning' into debian/sid
2014-06-10support Acquire::GzipIndexes in dumpavailDavid Kalnischkies1-1/+1
Closes: 742835
2014-06-06cmdline/apt-helper.cc: use less generic description/short-descriptionMichael Vogt1-1/+2
2014-06-02Show unauthenticated warning for source packages as wellMichael Vogt1-0/+9
This will show the same unauthenticated warning for source packages as for binary packages and will not download a source package if it is unauthenticated. This can be overridden with --allow-unauthenticated Closes: #749795
2014-05-30print error stack on failure of 'apt' solverDavid Kalnischkies1-18/+18
Git-Dch: ignore
2014-05-29cmdline/apt-extracttemplates.cc: remove unused private varMichael Vogt2-2/+1
Reported-By: clang -Wall
2014-05-29Merge remote-tracking branch 'upstream/debian/sid' into debian/experimentalMichael Vogt1-1/+0
Conflicts: test/integration/test-bug-747261-arch-specific-conflicts
2014-05-29add hashtable statsMichael Vogt1-1/+57
2014-05-28cmdline/apt-extracttemplates.cc: remove unused private varMichael Vogt2-2/+1
Reported-By: clang -Wall
2014-05-22fix screen width detection for apt/apt-get listsSebastian Schmidt1-1/+0
3163087b moved SigWinch(int) from apt-get.cc to private-output.cc without moving #include <sys/ioctl.h>, making SigWinch a nop. Closes: 748430, 747942
2014-05-22show upgradable packages after apt updateMichael Vogt1-0/+1
Closes: 748389
2014-05-20add GetSrvRecord helper to apt-pkg/contrib/srvrec.{cc,h}Michael Vogt2-1/+26
2014-05-10improve pkgTagSection scanning and parsingDavid Kalnischkies1-5/+8
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.
2014-05-09use HashStringList in the acquire systemDavid Kalnischkies1-4/+2
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.
2014-05-09use 'best' hash for source authenticationDavid Kalnischkies1-6/+13
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
2014-05-08Merge remote-tracking branch 'mvo/feature/build-dep-dsc2' into ↵Michael Vogt1-2/+25
debian/experimental Conflicts: apt-pkg/deb/debindexfile.cc apt-pkg/deb/debindexfile.h apt-pkg/deb/debsrcrecords.cc
2014-05-07Merge branch 'debian/sid' into debian/experimentalMichael Vogt15-704/+446
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
2014-04-28Fix missing ScreenWidth check in apt.ccMichael Vogt2-19/+7
2014-04-26remove unused duplicated acqprogress.{cc,h} filesDavid Kalnischkies2-345/+0
Those files are in apt-private and used from there. Git-Dch: Ignore
2014-04-25add support for apt-get build-dep unpacked-source-dirMichael Vogt1-1/+10
2014-04-24create debIFTypeDscFile typeMichael Vogt1-10/+10
2014-04-22add support for apt-get build-dep foo.dscMichael Vogt1-3/+17
2014-04-04Fix crash in "apt list" when a sources.list file is unreableMichael Vogt1-1/+1
Closes: 743413
2014-04-01enable DPkg::Progress-Fancy by defaultMichael Vogt1-1/+1
2014-03-27Use mkstemp() in apt-extracttemplaes (closes: #741627)Michael Vogt1-6/+9
Use mkstemp() in apt-extractemplates and add a integrationtest for apt-extracttemplates too. Thanks to Steve Kemp for the report.
2014-03-14fix test/integration/test-apt-helperMichael Vogt13-365/+315
2014-03-13cmdline parsing: apt-config is not apt-cdromDavid Kalnischkies1-1/+1
2014-03-13improve debug output in case downloadfile failsDavid Kalnischkies1-8/+7
Git-Dch: Ignore
2014-03-13remove code duplication for Add & Ident in apt-cdromDavid Kalnischkies1-121/+81
The preparation code to deal with auto-detection and co is the same for both methods, so not sharing them would be bad. Deals also with the prevention of side effects triggered by the auto-detection like disabling mounting for the fallback. Git-Dch: Ignore
2014-03-13use SPtrArray handling instead of explicit delete[]David Kalnischkies1-10/+1
The warning message from gcc doesn't make that much sense in my reading as there is no loop which could overflow here, but it is better to use our SPtrArray wrapping anyway which fixes the warning as well. warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations] delete[] Dsc; Git-Dch: Ignore Reported-By: gcc -Wunsafe-loop-optimizations
2014-03-13follow method attribute suggestions by gccDavid Kalnischkies2-2/+2
Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies13-132/+130
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 Kalnischkies9-18/+18
Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
2014-03-13warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies11-66/+66
Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
2014-03-13warning: extra ‘;’ [-Wpedantic]David Kalnischkies1-13/+13
Git-Dch: Ignore Reported-By: gcc -Wpedantic
2014-03-13fix -Wmissing-field-initializers warningsDavid Kalnischkies1-1/+1
Reported-By: gcc Git-Dch: Ignore
2014-03-13support DEB_BUILD_PROFILES and -P for build profilesDavid Kalnischkies2-0/+11
Inspired by the rest of the patch in 661537, but abstract the parsing of various ways of setting the build profiles more so it can potentially be reused and all apt parts have the same behaviour. Especially config options, cmdline options and environment will not be combined as proposed as this isn't APTs usual behaviour and dpkg doesn't do it either, so one overrides the other as it normally does.