summaryrefslogtreecommitdiff
path: root/cmdline/apt-config.cc
Commit message (Collapse)AuthorAgeFilesLines
* drop some needlessly public declarations in libapt-privateDavid Kalnischkies2015-11-291-2/+2
| | | | Git-Dch: Ignore
* use function pointers instead of weak symbols for cmdline parsingDavid Kalnischkies2015-11-291-1/+1
| | | | | | | | 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.
* review of new/changed translatable program stringsJustin B Rye2015-11-211-1/+1
| | | | | Reference mail: https://lists.debian.org/debian-l10n-english/2015/11/msg00006.html
* revamp all tools help messagesDavid Kalnischkies2015-11-041-9/+3
| | | | | | | | | | | | | | | | 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.
* deal with --version more centrallyDavid Kalnischkies2015-11-041-13/+2
| | | | Git-Dch: Ignore
* move apts cmdline helper type into -privateDavid Kalnischkies2015-11-041-3/+2
| | | | | | | | 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-8/+9
| | | | | | | 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-19/+5
| | | | | | | | 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-16/+22
| | | | | | | | | | | | | 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
* stop displaying time of build in online helpJérémy Bobbio2015-03-161-3/+2
| | | | | | | | | | | | | | | | | | As part of the “reproducible builds” effort [1], we have noticed that apt could not be built reproducibly. One issue is that it uses the __DATE__ and __TIME__ macros of the C preprocessor to display the time of build in the online help. We believe this information not to be really useful to users as they can always look at the package data and metadata to figure it out. The attached patch simply removes this information. All non-documentation packages can then be built reproducibly with our current experimental framework. [David: changed the string slightly to be untranslateable as well] Closes: 774342
* streamline display of --help in all toolsDavid Kalnischkies2014-11-091-13/+2
| | | | | | | 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.
* cmdline parsing: apt-config is not apt-cdromDavid Kalnischkies2014-03-131-1/+1
|
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-1/+1
| | | | | | | | 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-1/+1
| | | | | Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
* warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies2014-03-131-3/+3
| | | | | Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
* support DEB_BUILD_PROFILES and -P for build profilesDavid Kalnischkies2014-03-131-0/+5
| | | | | | | | | | 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-1/+1
|
* squash merge of the feature/apt-binary branch without the changes from ↵Michael Vogt2013-08-121-13/+10
| | | | experimental
* * cmdline/apt-config.cc:David Kalnischkies2012-04-221-1/+9
| | | | - make it possible to limit dump to a subtree - implement --empty and --format option for dump
* the previously used VERSION didn't work everywhere so we are switchingDavid Kalnischkies2012-03-221-1/+1
| | | | to the more standard PACKAGE_VERSION and make it work in every file
* * cmdline/apt-config.cc:David Kalnischkies2011-12-101-0/+16
| | | - dump the APT::Compressor settings correctly and completely
* use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-191-0/+1
|
* reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-3/+4
|
* * cmdline/apt-config.cc:David Kalnischkies2011-05-281-0/+13
| | | | - show Acquire::Languages and APT::Architectures settings in 'dump' (Closes: 626739)
* add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies2009-06-301-2/+2
|
* * Applied patch from Aurelien Jarno <aurel32@debian.org> to fix wrongOtavio Salvador2007-08-011-2/+2
| | | directory downloading on non-linux architectures (closes: #435597)
* Correct typo in Usage message : s/arbitary/arbitrary. Unfuzzy translations. ↵Christian Perrier2005-01-201-1/+1
| | | | | | | | Closes: #291172 * cmdline/*cc : s/arbitary/arbitrary * po/*po : unfuzzy translations * po/apt-all.pot : updated from source code
* G++ 3.2 fixesArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 2003-01-11 07:18:44 GMT G++ 3.2 fixes
* _config->Dump is now inlined, and calls Dump(clog). Du...Arch Librarian2004-09-201-2/+2
| | | | | | | Author: doogie Date: 2002-11-09 17:11:25 GMT _config->Dump is now inlined, and calls Dump(clog). Dump(ostream&) is now exported. Fixed apt-config dump sending to stderr.
* Added locale.h for LC_ALLArch Librarian2004-09-201-2/+3
| | | | | | Author: jgg Date: 2002-02-15 03:40:00 GMT Added locale.h for LC_ALL
* setup textdomain/etc for i18n stuffArch Librarian2004-09-201-2/+6
| | | | | | Author: jgg Date: 2002-01-09 04:59:44 GMT setup textdomain/etc for i18n stuff
* Join with aliencodeArch Librarian2004-09-201-32/+34
| | | | | | Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
* Fixed list notation doc bug and 'b' vs 'B'Arch Librarian2004-09-201-1/+12
| | | | | | Author: jgg Date: 1999-06-06 05:52:37 GMT Fixed list notation doc bug and 'b' vs 'B'
* Fixed cd stuff and some minor bugsArch Librarian2004-09-201-2/+13
| | | | | | Author: jgg Date: 1999-05-23 05:45:12 GMT Fixed cd stuff and some minor bugs
* Changed ie to egArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1999-03-29 19:28:52 GMT Changed ie to eg
* Added --version and fixed clogging for -sArch Librarian2004-09-201-1/+4
| | | | | | Author: jgg Date: 1999-01-30 02:12:53 GMT Added --version and fixed clogging for -s
* apt-cdromArch Librarian2004-09-201-23/+6
| | | | | | Author: jgg Date: 1998-11-27 01:52:53 GMT apt-cdrom
* Dselect supportArch Librarian2004-09-201-0/+119
Author: jgg Date: 1998-11-22 23:37:03 GMT Dselect support