summaryrefslogtreecommitdiff
path: root/cmdline
Commit message (Collapse)AuthorAgeFilesLines
* add "apt full-upgrade" and tweak "apt upgrade"Michael Vogt2014-01-242-23/+17
| | | | | | | | 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".
* add test for apt showMichael Vogt2014-01-221-1/+2
|
* add purge to the apt cmdlineMichael Vogt2014-01-171-1/+5
|
* add missing integration test for "apt list"Michael Vogt2014-01-171-10/+13
|
* reword !isatty() warningMichael Vogt2014-01-171-4/+3
|
* add apt upgrade --distMichael Vogt2014-01-171-1/+10
|
* Merge branch 'feature/test-apt-key-net-update' into debian/sidMichael Vogt2013-12-271-6/+13
|\
| * fix apt-key net-update test to use the buildin webserverMichael Vogt2013-12-191-1/+1
| |
| * make apt-key net-update actually testableMichael Vogt2013-12-131-6/+13
| |
* | factor GetTempDir outMichael Vogt2013-12-222-14/+7
| |
* | 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
|
* generate apt-key script with vendor info about keysDavid Kalnischkies2013-12-012-5/+13
| | | | | | | The apt-key script uses quiet a few keyring files for operation which are specific to the distribution it is build on and is hence one of the most patched parts – even if it is not that often used anymore now that a fragment directory for trusted.gpg exists.
* cherry-pick ubuntus (disabled) net-update fixesDavid Kalnischkies2013-12-011-13/+31
| | | | | | | With the net-update command a special keyring can be downloaded and imported into apt, which must be signed by a master key. Its is currently disabled because of security problems with it – and the only known user before that was Ubuntu.
* move EditSources into its own fileMichael Vogt2013-11-281-37/+1
|
* add check when sources.list changedMichael Vogt2013-11-261-6/+14
|
* add syntax check for sources.listMichael Vogt2013-11-261-3/+16
|
* add basic "edit-sources" commandMichael Vogt2013-11-252-18/+25
|
* Merge remote-tracking branch 'mvo/feature/upgrade-api' into debian/sidMichael Vogt2013-10-222-26/+2
|\
| * 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-052-1/+2
| | | | | | | | | | | | | | | | | | 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+
* do chdir("/") after chroot()Michael Vogt2013-08-221-2/+2
|
* Merge remote-tracking branch 'mvo/feature/apt-binary2' into debian/sidMichael Vogt2013-08-177-2098/+260
|\ | | | | | | | | Conflicts: cmdline/apt-get.cc
| * squash merge of the feature/apt-binary branch without the changes from ↵Michael Vogt2013-08-127-2095/+260
| | | | | | | | 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)
* let apt-key del work better with softlink and single key keyringsDavid Kalnischkies2013-08-121-3/+56
| | | | | | | Having fragement files means there is a good chance that there is one key per keyring, so deal with that as well as with setups in which keyrings are linked into trusted.gpg.d as we can't just modify those files (they might be in /usr for example).
* make the keyring locations in apt-key configurableDavid Kalnischkies2013-08-121-1/+5
| | | | Might come in handy for more than just a simple testcase.
* do not double-slash paths in apt-keyDavid Kalnischkies2013-08-121-1/+6
| | | | Closes: 665411
* use a tmpfile for trustdb.gpg in apt-keyDavid Kalnischkies2013-08-121-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | for some "interesting" reason gpg decides that it needs to update its trustdb.gpg file in a --list-keys command even if right before gpg is asked to --check-trustdb. That wouldn't be as bad if it wouldn't modify the keyring being listed at that moment as well, which generates not only warnings which are not a problem for us, but as the keyring modified can be in /usr it modified files which aren't allowed to be modified. The suggested solution in the bugreport is running --check-trustdb unconditionally in an 'apt-key update' call, but this command will not be used in the future and this could still potentially bite us in net-update or adv calls. All of this just to keep a file around, which we do not need… The commit therefore switches to the use of a temporary created trusted.gpg file for everyone and asks gpg to not try to update the trustdb after its intial creation, which seems to avoid the problem altogether. It is using your also faked secring btw as calling the check-trustdb without a keyring is a lot slower … Closes: #687611 Thanks: Andreas Beckmann for the initial patch!
* always use our own trustdb.gpg in apt-keyDavid Kalnischkies2013-08-121-6/+14
| | | | | | | | | | | | APT doesn't care for the trustdb.gpg, but gnupg requires one even for the simplest commands, so we either use the one root has available in /etc or if we don't have access to it (as only root can read that file) we create a temporary directory to store a trustdb.gpg in it. We can't create just a temporary file as gpg requires the given trustdb.gpg file to be valid (if it exists), so we would have to remove the file before calling gnupg which would allow mktemp (and co) to hand exactly this filename out to another program (unlikely, but still).
* add a not documented apt-key --fakeroot optionDavid Kalnischkies2013-08-121-32/+41
| | | | | | | | Usually, most apt-key commands require root, so the script is checking for being run as root, but in your tests we use a non-root location, so we don't need to be root and therefore need an option to skip the check. Git-Dch: Ignore
* improve error messageMichael Vogt2013-08-121-1/+2
|
* fix -Wall errorsMichael Vogt2013-08-081-1/+2
|
* 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.
* Merge remote-tracking branch 'mvo/bugfix/coverity' into debian/sidMichael Vogt2013-07-282-6/+8
|\