summaryrefslogtreecommitdiff
path: root/cmdline
AgeCommit message (Collapse)AuthorFilesLines
2015-04-08Merge remote-tracking branch 'origin/debian/jessie' into ubuntu/masterMichael Vogt1-1/+1
Conflicts: apt-pkg/deb/dpkgpm.cc
2015-04-07keyids in "apt-key del" should be case-insensitiveDavid Kalnischkies1-1/+1
gnupg is case-insensitive about keyids, so back then apt-key called it directly any keyid was accepted, but now that we work more with the keyid ourself we regressed to require uppercase keyids by accident. This is also inconsistent with other apt-key commands which still use gnupg directly. A single case-insensitive grep and we are fine again. Closes: 781696
2015-03-13Merge branch 'debian/sid' into ubuntu/masterMichael Vogt3-25/+40
Conflicts: configure.ac debian/changelog
2014-12-22dispose http(s) 416 error page as non-contentDavid Kalnischkies1-12/+23
Real webservers (like apache) actually send an error page with a 416 response, but our client didn't expect it leaving the page on the socket to be parsed as response for the next request (http) or as file content (https), which isn't what we want at all… Symptom is a "Bad header line" as html usually doesn't parse that well to an http-header. This manifests itself e.g. if we have a complete file (or larger) in partial/ which isn't discarded by If-Range as the server doesn't support it (or it is just newer, think: mirror rotation). It is a sort-of regression of 78c72d0ce22e00b194251445aae306df357d5c1a, which removed the filesize - 1 trick, but this had its own problems… To properly test this our webserver gains the ability to reply with transfer-encoding: chunked as most real webservers will use it to send the dynamically generated error pages. (The tests and their binary helpers had to be slightly modified to apply, but the patch to fix the issue itself is unchanged.) Closes: 768797
2014-11-28support long keyids in "apt-key del" instead of ignoring themJames McCoy1-1/+1
apt-key given a long keyid reports just "OK" all the time, but doesn't delete the mentioned key as it doesn't find the key. Note: In debian/experimental this was closed with 29f1b977100aeb6d6ebd38923eeb7a623e264ffe which just added the testcase as the rewrite of apt-key had fixed this as well. Closes: 754436
2014-11-10use 'best' hash for source authenticationDavid Kalnischkies1-12/+16
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
2014-10-08Merge branch 'debian/sid' into ubuntu/masterMichael Vogt1-2/+2
Conflicts: configure.ac debian/changelog
2014-10-02apt-get: Create the temporary downloaded changelog inside tmpdirGuillem Jover1-1/+1
The code is creating a secure temporary directory, but then creates the changelog alongside the tmpdir in the same base directory. This defeats the secure tmpdir creation, making the filename predictable. Inject a '/' between the tmpdir and the changelog filename.
2014-09-21generalize Acquire::GzipIndexMichael Vogt1-1/+1
2014-09-10Merge branch 'debian/sid' into ubuntu/masterMichael Vogt5-38/+60
Conflicts: configure.ac debian/changelog doc/apt-verbatim.ent doc/po/apt-doc.pot doc/po/de.po doc/po/es.po doc/po/fr.po doc/po/it.po doc/po/ja.po doc/po/pl.po doc/po/pt.po doc/po/pt_BR.po po/apt-all.pot po/ar.po po/ast.po po/bg.po po/bs.po po/ca.po po/cs.po po/cy.po po/da.po po/de.po po/dz.po po/el.po po/es.po po/eu.po po/fi.po po/fr.po po/gl.po po/hu.po po/it.po po/ja.po po/km.po po/ko.po po/ku.po po/lt.po po/mr.po po/nb.po po/ne.po po/nl.po po/nn.po po/pl.po po/pt.po po/pt_BR.po po/ro.po po/ru.po po/sk.po po/sl.po po/sv.po po/th.po po/tl.po po/tr.po po/uk.po po/vi.po po/zh_CN.po po/zh_TW.po
2014-09-02Use heap to allocate PatternMatch to avoid potential stack overflowMichael Vogt1-2/+3
When apt-cache search with many args (> 130) is given the allocation of PatternMatch on the stack may fail resulting in a segmentation fault. By using the heap the max size is much bigger and we also get a bad_alloc expection instead of a segfault (which we can catch *if* this ever becomes a pratical problem). No test for the crash as its not reproducable with the MALLOC_ settings in framework. Closes: 759612
2014-09-02Make Proxy-Auto-Detect check for each hostMichael Vogt1-0/+16
When doing Acquire::http{,s}::Proxy-Auto-Detect, run the auto-detect command for each host instead of only once. This should make using "proxy" from libproxy-tools feasible which can then be used for PAC style or other proxy configurations. Closes: #759264
2014-08-26add dpkg::source-options for dpkg-source invocationDavid Kalnischkies1-16/+17
dpkg-source can be told to enforce signature checks with --require-valid-signature, but while this isn't feasible as default for Debian itself at the moment, a local admin should be able to use it. This commit also fixes the size limit on the construction of the command being called for dpkg-source and dpkg-buildpackage. Closes: 757534
2014-06-18show our broken packages message in 'apt' solverDavid Kalnischkies2-20/+24
2014-06-10Merge branch 'debian/sid' into ubuntu/master1.0.4ubuntu1Michael Vogt5-20/+30
Conflicts: configure.ac debian/changelog
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-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-05Merge branch 'debian/sid' into ubuntu/masterMichael Vogt2-19/+7
Conflicts: configure.ac debian/apt.dirs debian/changelog
2014-04-28Fix missing ScreenWidth check in apt.ccMichael Vogt2-19/+7
2014-04-28Merge branch 'debian/sid' into ubuntu/masterMichael Vogt2-345/+0
Conflicts: po/vi.po
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-10Merge branch 'debian/sid' into ubuntu/masterMichael Vogt1-1/+1
2014-04-04Fix crash in "apt list" when a sources.list file is unreableMichael Vogt1-1/+1
Closes: 743413
2014-04-01Merge branch 'debian/sid' into ubuntu/masterMichael Vogt13-361/+326
Conflicts: apt-pkg/deb/dpkgpm.cc debian/apt.auto-removal.sh debian/changelog vendor/debian/sources.list.in
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.
2014-03-12Merge remote-tracking branch 'upstream/debian/sid' into ↵Michael Vogt1-1/+2
feature/apt-download-file Conflicts: cmdline/apt-helper.cc test/integration/framework test/integration/test-apt-https-no-redirect
2014-03-12add hashsum support in apt-file download and add more testsMichael Vogt1-0/+11
2014-02-28Merge branch 'debian/sid' into ubuntu/masterMichael Vogt2-0/+134
2014-02-27initial version of apt-helperMichael Vogt2-0/+134
2014-02-27initial version of apt-helperMichael Vogt2-0/+134
2014-02-23Merge branch 'debian/sid' into ubuntu/masterMichael Vogt6-36/+31
Conflicts: debian/changelog