summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
Commit message (Collapse)AuthorAgeFilesLines
* mark pkg(All|Dist)Upgrade as deprecatedDavid Kalnischkies2014-09-271-1/+1
| | | | | | | | The comment above their definition marks them already as such, so this is only a formalisation of the deprecation and fixes the occurances we have in our own code together with removing a magic number. Git-Dch: Ignore
* Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-09-051-16/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apt-pkg/acquire-item.cc 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/pt.po 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 test/integration/test-ubuntu-bug-346386-apt-get-update-paywall
| * add dpkg::source-options for dpkg-source invocationDavid Kalnischkies2014-08-261-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
* | Only allow "apt-get build-dep path" when path starts with ./ or /Michael Vogt2014-07-081-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.
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-06-181-0/+9
|\| | | | | | | | | Conflicts: debian/changelog
| * 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
* | 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
* | 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-071-87/+69
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-281-19/+3
| |/
| * 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
| * cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-41/+42
| | | | | | | | | | | | | | | | 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-131-5/+5
| | | | | | | | | | Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
| * warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies2014-03-131-18/+18
| | | | | | | | | | Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
| * support DEB_BUILD_PROFILES and -P for build profilesDavid Kalnischkies2014-03-131-0/+6
| | | | | | | | | | | | | | | | | | | | 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 branch 'debian/sid' into debian/experimentalMichael Vogt2014-02-271-169/+214
|\| | | | | | | | | | | | | | | Conflicts: apt-private/private-list.cc configure.ac debian/apt.install.in debian/changelog
| * Fix typos in documentation (codespell)Michael Vogt2014-02-221-2/+2
| |
| * Use a APT::VersionSet instead of a VersionListMichael Vogt2014-02-121-3/+3
| | | | | | | | | | | | | | Use a APT::VersionSet instead of a APT::VersionList in DoDownload() to ensure that there is only one version in the set even if the user passes multiple identical name/versions on the commandline (Bug#738103)
| * move isatty() check into InitOutput()Michael Vogt2014-02-051-4/+0
| |
| * fix apt-get download truncation (closes: #736962)Michael Vogt2014-01-291-3/+6
| |
| * add "apt full-upgrade" and tweak "apt upgrade"Michael Vogt2014-01-241-8/+0
| | | | | | | | | | | | | | | | There is a new "apt full-upgrade" that performs a apt-get dist-upgrade. "apt dist-upgrade" is still supported as a alias. The "apt upgrade" code is changed so that it mirrors the behavior of "apt-get upgrade --with-new-pkgs" and also honors "apt uprade --no-new-pkgs".
| * factor GetTempDir outMichael Vogt2013-12-221-6/+4
| |
| * Merge remote-tracking branch 'mvo/bugfix/conffile' into debian/sidMichael Vogt2013-12-121-1/+1
| |\
| | * clarify error message when apt-get source=ver fails, print a real error ↵Michael Vogt2013-12-121-1/+1
| | | | | | | | | | | | message instead of "ignoring"
| * | improve error messageMichael Vogt2013-12-111-3/+6
| |/
| * improve error message for apt-get source pkg:arch{=ver,/release}Michael Vogt2013-12-111-4/+14
| |
| * add support for "apt-get source pkg:arch"Michael Vogt2013-12-111-10/+50
| |
| * user-requested version tag gets precedence in apt-get source -t dist ↵Michael Vogt2013-12-101-4/+4
| | | | | | | | pkg=version requests
| * fix typoMichael Vogt2013-12-101-1/+1
| |
| * if there is only deb-src pick higest version in deb-src release matchingMichael Vogt2013-12-101-3/+5
| |
| * * enable release based selection for deb-src (closes: 731102)Michael Vogt2013-12-051-25/+97
| |
| * add basic "edit-sources" commandMichael Vogt2013-11-251-18/+1
| |
| * Merge remote-tracking branch 'mvo/feature/upgrade-api' into debian/sidMichael Vogt2013-10-221-26/+1
| |\
| | * rename FORBID_NEW_INSTALL_PACKAGES to FORBID_INSTALL_NEW_PACKAGESMichael Vogt2013-10-051-66/+41
| | |\
| | * | * move upgrade releated code into upgrade.{cc,h}Michael Vogt2013-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The upgrade releated code is moved into upgrade.{cc,h} and all pkg*Upgrade* prototypes are included in algorihms.h to avoid breaking API (unless build with APT_9_CLEANER_HEADERS).
| | * | cleanup upgrade API some more (thanks for the feedback from David)Michael Vogt2013-10-051-26/+0
| | | |
| * | | Merge remote-tracking branch 'mvo/feature/upgrade-with-new' into debian/sidMichael Vogt2013-10-081-1/+1
| |\ \ \ | | |_|/ | |/| |
| | * | Merge remote-tracking branch 'upstream/debian/sid' into feature/upgrade-with-newMichael Vogt2013-08-281-3/+4
| | |\ \
| | * | | add man-page, improve option, use --with-new-pkgs as the flagMichael Vogt2013-08-281-1/+1
| | | | |
| * | | | use pkgAcqArchive in 'download' for proper errorsDavid Kalnischkies2013-10-031-45/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With a bit of trickery we can reuse the usual infrastructure we have in place to acquire deb files for the 'download' operation as well, which gains us authentification check & display, error messages, correct filenames and "downloads" from the root-owned archives.
| * | | | put fetch errors in 'source' on our errorstackDavid Kalnischkies2013-10-031-22/+6
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | refactor the fetching process so that it looks more like the others we have in the hope that we can reuse code in the future. This is a soft interface change as 'source' previously printed errors directly on stderr, while it will now push it onto our usual error stack.
| * | | fix vim-style foldmarkerDavid Kalnischkies2013-09-031-6/+2
| | |/ | |/| | | | | | | Git-Dch: Ignore
| * | allow pkg manipulation in the upgrade/dist-upgrade commandline, e.g. apt-get ↵Michael Vogt2013-08-271-3/+4
| |/ | | | | | | dist-upgrade 2vcard- 4g8+
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2013-08-171-1961/+28
|\| | | | | | | | | | | Conflicts: cmdline/apt-get.cc debian/changelog