summaryrefslogtreecommitdiff
path: root/apt-private/private-cmndline.cc
Commit message (Collapse)AuthorAgeFilesLines
* apt-helper: cat-file: Add -C/--compress optionJulian Andres Klode2016-01-071-1/+5
| | | | | | This allows passing compressing the output. The compressor must be a compressor name, extension, or an extension without the leading dot.
* Add new APT::Keep-Downloaded-Packages optionMichael Vogt2016-01-021-0/+1
| | | | | | | | | | This option controls if downloaded packages should be kept after a successful install or if they should be deleted. The default for "apt-get" is that they are kept (just like before). However the default for "apt" is that they get deleted. Closes: #160743
* use function pointers instead of weak symbols for cmdline parsingDavid Kalnischkies2015-11-291-9/+7
| | | | | | | | Passing function pointers around while working on this was very icky, but if weak symbols are too much to ask for… Reverts "do not use "-Wl,-Bsymbolic-functions" during the build to avoid breakage" aka a5fc9be36211a290a7abc3ca2a8bf98943bc1f57.
* Revert "Revert "appease adequate with some weak symbols for -private""Julian Andres Klode2015-11-281-0/+4
| | | | This reverts commit 7ac9386cb6e272625490fcf3e8183b45e28bbc43.
* Revert "appease adequate with some weak symbols for -private"Julian Andres Klode2015-11-281-4/+0
| | | | | | This reverts commit 28f24d3dad1844af316337d565ba2ebc11c8ce97. This fails on Ubuntu as they build with -Bsymbolic-functions.
* appease adequate with some weak symbols for -privateDavid Kalnischkies2015-11-271-0/+4
| | | | Closes: #806422
* revamp all tools help messagesDavid Kalnischkies2015-11-041-15/+52
| | | | | | | | | | | | | | | | The general idea is: A small paragraph on the tool itself as a description, a list of the most used (!= all) commands available in the tool, a remark where to find more information on the tool and its commands (aka: in the manpage) and finally a common block referring to even more manpages. In exchange options are completely omitted from the output as well as deprecated or obscure commands. (Better) Information about them is available in the manpages anyway and the few options which were listed before were also the least interesting ones (-o -c -q and co are hardly of interest for someone totally new looking to find info by asking for help and anyone with a bit of experience doesn't need this short list. Those would need a list of options applying to the command they call, but they are too numerous and command specific to list them sanely in this context.
* show version and type in "apt (r)depends"David Kalnischkies2015-11-041-0/+2
| | | | | | We can't for compatibility reasons in apt-cache, but apt can. Closes: 218995
* deal with --version more centrallyDavid Kalnischkies2015-11-041-3/+27
| | | | Git-Dch: Ignore
* move apts cmdline helper type into -privateDavid Kalnischkies2015-11-041-6/+10
| | | | | | | | Its not as simple as I initially thought to abstract this enough to make it globally usable, so lets not pollute global namespace with this for now. Git-Dch: Ignore
* generate commands array after config is loadedDavid Kalnischkies2015-11-041-41/+46
| | | | | | | This ensures that location strings loaded from a location specified via configuration (Dir::Locale) effect the help messages for commands. Git-Dch: Ignore
* deduplicate main methodsDavid Kalnischkies2015-11-041-2/+67
| | | | | | | | All mains pretty much do the same thing, so lets try a little harder to move the common parts into -private to have the real differences more visible. Git-Dch: Ignore
* split up help messages for simpler reuseDavid Kalnischkies2015-11-041-7/+8
| | | | | | | | | | | | | That is one huge commit with busy work only: Help messages used to be one big translateable string, which is a pain for translators and hard to reuse for us. This change there 'explodes' this single string into new string for each documented string trying hard to split up the translated messages as well. This actually restores many translations as previously adding a single command made all of the bug message fuzzy. The splitup also highlighted that its easy to forget a line, duplicate one and similar stuff. Git-Dch: Ignore
* disable updating insecure repositories in apt by defaultDavid Kalnischkies2015-11-041-0/+1
| | | | | | apt is an interactive command and the reasons we haven't this option set for everything is mostly in keeping compatibility for a little while longer to allow scripts to be changed if need be.
* move 'search' implementations as wellDavid Kalnischkies2015-11-041-0/+5
| | | | Git-Dch: Ignore
* centralize 'show' implementation of apt and apt-cacheDavid Kalnischkies2015-11-041-6/+16
| | | | | | | | | | The show commands have different styles in both binaries as the audience is potentially very different, but that doesn't mean we need to separate the implementation especially as they are slightly similar. This also allows us to switch between the different show versions at runtime via an option. Git-Dch: Ignore
* add binary-specific options via Binary scopeDavid Kalnischkies2015-11-041-2/+16
| | | | | | Especially with apt now, it can be useful to set an option only for apt and not for apt-get. Using a binary-specific subtree which is merged into the root seems like a simple enough trick to achieve this.
* allow all dpkg selections to be set via apt-mark and libaptDavid Kalnischkies2015-11-041-8/+20
| | | | | | As we have support for 'hold', we need support for undoing a hold which in effect means that we implemented most other states as well, just that they weren't exposed in the interface directly so far.
* Allow -i and -u as aliases for installed and upgradable in listJulian Andres Klode2015-10-201-2/+2
| | | | This makes things much easier to use
* Add support for "apt-cache showsrc --only-source srcpkgname"Michael Vogt2015-08-181-1/+5
| | | | | Thanks: Steve Slangasek for the suggestion Closes: 695633
* Make auto-remove and auto-clean aliases for the versions without -Julian Andres Klode2015-08-141-2/+2
| | | | | | | | Some people type them instead of autoremove and autoclean, so make them happy. Closes: #274159 Makes-Happy: Ansgar
* Replace --force-yes by various options starting with --allowJulian Andres Klode2015-08-141-0/+3
| | | | This enables more fine grained control over such exceptions.
* Accept --upgradeable as synonym for --upgradableJulian Andres Klode2015-08-131-0/+1
| | | | | | It's a tiny diff, so why not? But no need to document it. Closes: #787846
* hide implicit deps in apt-cache again by defaultDavid Kalnischkies2015-08-101-0/+1
| | | | | | | | | | | | | | Before MultiArch implicits weren't a thing, so they were hidden by default by definition. Adding them for MultiArch solved many problems, but having no reliable way of detecting which dependency (and provides) is implicit or not causes problems everytime we want to output dependencies without confusing our observers with unneeded implementation details. The really notworthy point here is actually that we keep now a better record of how a dependency came to be so that we can later reason about it more easily, but that is hidden so deep down in the library internals that change is more the problems it solves than the change itself.
* rename 'apt-get files' to 'apt-get indextargets'David Kalnischkies2015-08-101-3/+3
| | | | | | | | 'files' is a bit too generic as a name for a command usually only used programmatically (if at all) by developers, so instead of "wasting" this generic name for this we use "indextargets" which is actually the name of the datastructure the displayed data is stored in. Along with this rename the config options are renamed accordingly.
* implement default apt-get file --release-info modeDavid Kalnischkies2015-06-151-0/+1
| | | | | | | | | | Selecting targets based on the Release they belong to isn't to unrealistic. In fact, it is assumed to be the most used case so it is made the default especially as this allows to bundle another thing we have to be careful with: Filenames and only showing targets we have acquired. Closes: 752702
* implement 'apt-get files' to access index targetsDavid Kalnischkies2015-06-111-0/+4
| | | | | | | | | | | | | Downloading additional files is only half the job. We still need a way to allow external tools to know where the files are they requested for download given that we don't want them to choose their own location. 'apt-get files' is our answer to this showing by default in a deb822 format information about each IndexTarget with the potential to filter the records based on lines and an option to change the output format. The command serves also as an example on how to get to this information via libapt.
* fix another d(e)select-upgrade typoDavid Kalnischkies2015-03-161-1/+1
| | | | | | | | You would think one instance of this is enough, but 80e8d923ebc8d5f3f84eb3f922b28ca309c25026 wasn't as globally applied as the commit message suggested… LP: #1399037
* streamline display of --help in all toolsDavid Kalnischkies2014-11-091-0/+33
| | | | | | | By convention, if I run a tool with --help or --version I expect it to exit successfully with the usage, while if I do call it wrong (like without any parameters) I expect the usage message shown with a non-zero exit.
* reenable support for -s (and co) in apt-get sourceDavid Kalnischkies2014-10-201-1/+1
| | | | | | | | The conversion to accept only relevant options for commands has forgotten another one, so adding it again even through the usecase might very well be equally good served by --print-uris. Closes: 742578
* Use Acquire::Allow{InsecureRepositories,DowngradeToInsecureRepositories}Michael Vogt2014-10-011-0/+1
| | | | | | | | | | | The configuration key Acquire::AllowInsecureRepositories controls if apt allows loading of unsigned repositories at all. The configuration Acquire::AllowDowngradeToInsecureRepositories controls if a signed repository can ever become unsigned. This should really never be needed but we provide it to avoid having to mess around in /var/lib/apt/lists if there is a use-case for this (which I can't think of right now).
* support regular expressions in 'apt search'David Kalnischkies2014-09-071-2/+7
| | | | | apt-cache search supported this since ever and in the code for apt was a fixme indicating this should be added here as well, so here we go.
* support dist-upgrade options in full-upgradeDavid Kalnischkies2014-04-161-2/+2
| | | | | | dist-upgrade is supposed to be an alias for full-upgrade in apt, but dist-upgrade was the only command recognized of the two in the option and flags recognition code.
* follow method attribute suggestions by gccDavid Kalnischkies2014-03-131-1/+1
| | | | | Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-4/+2
| | | | | | | | 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: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies2014-03-131-7/+7
| | | | | Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
* support DEB_BUILD_PROFILES and -P for build profilesDavid Kalnischkies2014-03-131-0/+2
| | | | | | | | | | 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 'mvo/feature/apt-show-nice' into ↵Michael Vogt2014-01-241-0/+4
|\ | | | | | | | | | | | | debian/experimental-no-abi-break Conflicts: apt-private/private-cmndline.cc
| * Show only the candidate with "apt show"Michael Vogt2014-01-231-0/+4
| | | | | | | | | | Display only the candidate version with "apt show pkg" but show a notice that there is more to see.
* | add "apt full-upgrade" and tweak "apt upgrade"Michael Vogt2014-01-241-5/+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".
* add apt upgrade --distMichael Vogt2014-01-171-0/+5
|
* add --manual-installed commandline switchMichael Vogt2014-01-161-0/+1
|
* Merge remote-tracking branch 'mvo/debian/sid' into debian/sidMichael Vogt2013-11-291-1/+1
|\ | | | | | | | | Conflicts: apt-private/private-cmndline.cc
| * rename APT::Cmd::AllVersions -> APT::Cmd::All-Versions, APT::Cmd::UseRegexp ↵Michael Vogt2013-11-261-1/+1
| | | | | | | | -> APT::Cmd::Use-Regexp
* | Merge remote-tracking branch 'mvo/feature/short-list' into debian/sidMichael Vogt2013-11-281-0/+1
|\ \
| * | add APT::Cmd::List-Include-SummaryMichael Vogt2013-11-261-0/+1
| |/
* | add "-f" option to "build-dep" as sbuild is using it to fix regression with ↵Michael Vogt2013-11-281-0/+3
| | | | | | | | cross-building (LP: #1255806)
* | fix "apt-get --purge build-dep" (closes: #720597)Michael Vogt2013-11-281-0/+1
|/
* Merge remote-tracking branch 'mvo/feature/upgrade-with-new' into debian/sidMichael Vogt2013-10-081-1/+2
|\
| * Merge remote-tracking branch 'upstream/debian/sid' into feature/upgrade-with-newMichael Vogt2013-08-281-1/+1
| |\