summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
* 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.
* 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 remote-tracking branch 'mvo/feature/apt-binary2' into debian/sidMichael Vogt2013-08-171-1962/+29
|\ | | | | | | | | Conflicts: cmdline/apt-get.cc
| * squash merge of the feature/apt-binary branch without the changes from ↵Michael Vogt2013-08-121-1959/+29
| | | | | | | | experimental
* | merge patch from Daniel Hartwig to Show a error message if {,dist-}upgrade ↵Michael Vogt2013-08-151-0/+6
|/ | | | | | is used with additional arguments (closes: #705510)
* unset LANGUAGE for showing [Y/n] answer hintsDavid Kalnischkies2013-08-011-3/+32
| | | | | | | | | | | | | | | | | | | | | nl_langinfo is used to acquire the YESEXPR of the language used, but it will return the one from LC_MESSAGES, which might be different from the language chosen for display of the question (based on LANGUAGE) so this commit removes the [Y/n] help text from the questions itself and moves it to the prompt creation in which the usage of LC_MESSAGES is forced for it, so that the helptext shown actually represents the characters accepted as input for the question. There is still room for problems of course starting with an untranslated "[Y/n]" but a translated YESEXPR or the problem that the question is asked in a completely different language which might have a conflicting definition of [Y/n] input or the user simple ignores the helptext and assumes that an answer matching the question language is accepted, but the mayority of users will never have this problem to begin with, so we should be fine (or at least a bit finer than before). Closes nothing really, but should at least help a bit with bugs like deb:194614, deb:471102, lp:1205578, and countless others.
* fix potential GetLock() fd leakMichael Vogt2013-07-251-4/+6
|
* deprecate InstallProtect as a cpu-eating no-opDavid Kalnischkies2013-06-091-3/+1
| | | | | | | | | | | | In the past packages were flagged "Protected" so that install/ remove markings where issued before the ProblemResolver. Nowadays, the marking methods check if they are allowed to modify the marking of a package instead, so that markings set by FromUser calls are not overwritten anymore by automatic calls which elimates the need for InstallProtect which just eats CPU now. The method itself is left untouched for now in case frontend needs it still for some wierd usecase, but they should be eliminated.
* merged bundle from davidMichael Vogt2013-04-081-2/+2
|\
| * various simple changes to fix cppcheck warningsDavid Kalnischkies2013-03-101-2/+2
| |
* | merge patch from Daniel HartwigMichael Vogt2013-03-251-1/+1
|/
* ensure sha512 is really used when available (thanks to Tyler Hicks )Michael Vogt2013-01-141-1/+1
|
* * cmdline/apt-get.cc:David Kalnischkies2012-11-091-3/+3
| | | | - do not call Mark{Install,Delete} from the autoremove code with the FromUser bit set to avoid modifying the auto-installed bit
* adds a comment for Translators to the 'do as I say' prompt toDavid Kalnischkies2012-10-201-1/+3
| | | | prevent problems like #691024 in new translations
* disable the display of the error messages for DoInstall if DoBuildDepDavid Kalnischkies2012-08-061-1/+1
| | | | is calling the helper (enabled by enforcing failure reporting)
* ensure that the right architecture is used for cross-dependencies inDavid Kalnischkies2012-08-051-11/+22
| | | | cases we have to choose a provider by defaulting on host-arch instead of build-arch
* improve the check for purely virtuals as provided packages aren'tDavid Kalnischkies2012-08-041-1/+1
| | | | purely virtual and shouldn't error out cause of that