summaryrefslogtreecommitdiff
path: root/cmdline
Commit message (Collapse)AuthorAgeFilesLines
* correct 'apt-cache stats' to include moreDavid Kalnischkies2014-06-181-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
* cleanup datatypes mix used in binary cacheDavid Kalnischkies2014-06-181-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.
* Merge remote-tracking branch 'donkult/debian/sid' into debian/experimentalMichael Vogt2014-06-182-20/+24
|\ | | | | | | | | Conflicts: apt-private/private-install.cc
| * show our broken packages message in 'apt' solverDavid Kalnischkies2014-06-182-20/+24
| |
* | Merge remote-tracking branch 'mvo/feature/drop-rights' into debian/experimentalMichael Vogt2014-06-182-0/+5
|\ \ | | | | | | | | | | | | | | | Conflicts: apt-pkg/contrib/fileutl.cc apt-pkg/contrib/fileutl.h
| * | DropPrivs in the solvers (just to be on the safe side)Michael Vogt2014-06-112-0/+5
| |/
* | Merge remote-tracking branch 'mvo/feature/hash-stats' into debian/experimentalMichael Vogt2014-06-181-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
| * | Provide ShowHashTableStats functionMichael Vogt2014-06-181-55/+43
| | |
| * | improve formating of the hash statsMichael Vogt2014-06-181-15/+15
| | |
| * | add hashtable statsMichael Vogt2014-05-291-1/+57
| | |
| * | cmdline/apt-extracttemplates.cc: remove unused private varMichael Vogt2014-05-282-2/+1
| | | | | | | | | | | | Reported-By: clang -Wall
* | | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-06-185-20/+31
|\ \ \ | | |/ | |/| | | | | | | Conflicts: debian/changelog
| * | Merge remote-tracking branch 'mvo/feature/apt-update-info' into debian/sidMichael Vogt2014-06-101-0/+1
| |\ \
| | * | show upgradable packages after apt updateMichael Vogt2014-05-221-0/+1
| | | | | | | | | | | | | | | | Closes: 748389
| * | | Merge remote-tracking branch ↵Michael Vogt2014-06-101-0/+9
| |\ \ \ | | | | | | | | | | | | | | | 'mvo/bugfix/apt-get-source-unauthenticated-warning' into debian/sid
| | * | | Show unauthenticated warning for source packages as wellMichael Vogt2014-06-021-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
| * | | | support Acquire::GzipIndexes in dumpavailDavid Kalnischkies2014-06-101-1/+1
| | | | | | | | | | | | | | | | | | | | Closes: 742835
| * | | | cmdline/apt-helper.cc: use less generic description/short-descriptionMichael Vogt2014-06-061-1/+2
| | | | |
| * | | | print error stack on failure of 'apt' solverDavid Kalnischkies2014-05-301-18/+18
| |/ / / | | | | | | | | | | | | Git-Dch: ignore
* | | | cmdline/apt-extracttemplates.cc: remove unused private varMichael Vogt2014-05-292-2/+1
| | | | | | | | | | | | | | | | Reported-By: clang -Wall
* | | | Merge remote-tracking branch 'upstream/debian/sid' into debian/experimentalMichael Vogt2014-05-291-1/+0
|\| | | | | | | | | | | | | | | | | | | Conflicts: test/integration/test-bug-747261-arch-specific-conflicts
| * | | fix screen width detection for apt/apt-get listsSebastian Schmidt2014-05-221-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
* | | improve pkgTagSection scanning and parsingDavid Kalnischkies2014-05-101-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.
* | | use HashStringList in the acquire systemDavid Kalnischkies2014-05-091-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.
* | | use 'best' hash for source authenticationDavid Kalnischkies2014-05-091-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
* | | Merge remote-tracking branch 'mvo/feature/build-dep-dsc2' into ↵Michael Vogt2014-05-081-2/+25
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | debian/experimental Conflicts: apt-pkg/deb/debindexfile.cc apt-pkg/deb/debindexfile.h apt-pkg/deb/debsrcrecords.cc
| * | | add support for apt-get build-dep unpacked-source-dirMichael Vogt2014-04-251-1/+10
| | | |
| * | | create debIFTypeDscFile typeMichael Vogt2014-04-241-10/+10
| | | |
| * | | add support for apt-get build-dep foo.dscMichael Vogt2014-04-221-3/+17
| | |/ | |/|
* | | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-05-0715-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
| * | Fix missing ScreenWidth check in apt.ccMichael Vogt2014-04-282-19/+7
| | |
| * | remove unused duplicated acqprogress.{cc,h} filesDavid Kalnischkies2014-04-262-345/+0
| |/ | | | | | | | | | | Those files are in apt-private and used from there. Git-Dch: Ignore
| * Fix crash in "apt list" when a sources.list file is unreableMichael Vogt2014-04-041-1/+1
| | | | | | | | Closes: 743413
| * enable DPkg::Progress-Fancy by defaultMichael Vogt2014-04-011-1/+1
| |
| * Use mkstemp() in apt-extracttemplaes (closes: #741627)Michael Vogt2014-03-271-6/+9
| | | | | | | | | | Use mkstemp() in apt-extractemplates and add a integrationtest for apt-extracttemplates too. Thanks to Steve Kemp for the report.
| * fix test/integration/test-apt-helperMichael Vogt2014-03-1413-365/+315
| |\
| | * cmdline parsing: apt-config is not apt-cdromDavid Kalnischkies2014-03-131-1/+1
| | |
| | * improve debug output in case downloadfile failsDavid Kalnischkies2014-03-131-8/+7
| | | | | | | | | | | | Git-Dch: Ignore
| | * remove code duplication for Add & Ident in apt-cdromDavid Kalnischkies2014-03-131-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
| | * use SPtrArray handling instead of explicit delete[]David Kalnischkies2014-03-131-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
| | * follow method attribute suggestions by gccDavid Kalnischkies2014-03-132-2/+2
| | | | | | | | | | | | | | | Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
| | * cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-1313-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)
| | * warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies2014-03-139-18/+18
| | | | | | | | | | | | | | | Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
| | * warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies2014-03-1311-66/+66
| | | | | | | | | | | | | | | Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
| | * warning: extra ‘;’ [-Wpedantic]David Kalnischkies2014-03-131-13/+13
| | | | | | | | | | | | | | | Git-Dch: Ignore Reported-By: gcc -Wpedantic
| | * fix -Wmissing-field-initializers warningsDavid Kalnischkies2014-03-131-1/+1
| | | | | | | | | | | | | | | Reported-By: gcc Git-Dch: Ignore
| | * support DEB_BUILD_PROFILES and -P for build profilesDavid Kalnischkies2014-03-132-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.
| * | Merge remote-tracking branch 'upstream/debian/sid' into ↵Michael Vogt2014-03-121-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | feature/apt-download-file Conflicts: cmdline/apt-helper.cc test/integration/framework test/integration/test-apt-https-no-redirect
| | * initial version of apt-helperMichael Vogt2014-02-272-0/+134
| | |
| * | add hashsum support in apt-file download and add more testsMichael Vogt2014-03-121-0/+11
| | |