summaryrefslogtreecommitdiff
path: root/cmdline/apt-extracttemplates.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.
* revamp all tools help messagesDavid Kalnischkies2015-11-041-9/+4
| | | | | | | | | | | | | | | | 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-5/+0
| | | | 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-7/+10
| | | | | | | 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-22/+4
| | | | | | | | 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-2/+2
| | | | | | | | | | | | | 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-2/+1
| | | | | | | | | | | | | | | | | | 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-20/+12
| | | | | | | 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.
* Fix ar and tar code to be LFS-safeGuillem Jover2014-07-081-1/+1
| | | | | | This is an ABI break. Closes: #742882
* cmdline/apt-extracttemplates.cc: remove unused private varMichael Vogt2014-05-291-1/+1
| | | | Reported-By: clang -Wall
* improve pkgTagSection scanning and parsingDavid Kalnischkies2014-05-101-5/+8
| | | | | | Removes the 256 fields limit, deals consistently with spaces littered all over the place and is even a tiny bit faster than before. Even comes with a bunch of new tests to validate these claims.
* Use mkstemp() in apt-extracttemplaes (closes: #741627)Michael Vogt2014-03-271-6/+9
| | | | | Use mkstemp() in apt-extractemplates and add a integrationtest for apt-extracttemplates too. Thanks to Steve Kemp for the report.
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-5/+4
| | | | | | | | 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-4/+4
| | | | | Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
* Add support for data.tar, control.tar and control.tar.xzGuillem Jover2014-02-221-14/+4
| | | | | | | | Sync the deb(5) format support with latest dpkg, by allowing uncompressed tar members and xz compressed control.tar. This also refactors the control.tar member extraction by using ExtractTarMember(), which also means future changes only need to be implemented in a single place.
* factor GetTempDir outMichael Vogt2013-12-221-8/+3
|
* ensure that apti18n.h is included last as advertised (Closes: #671623)David Kalnischkies2012-05-051-2/+4
|
* 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
* fix a bunch of cppcheck "(warning) Member variable '<#>' is notDavid Kalnischkies2012-03-041-2/+2
| | | | initialized in the constructor." messages (no functional change)
* 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-2/+3
|
* Switch away from the now deprecated methods for Cache buildingDavid Kalnischkies2010-06-041-2/+1
|
* add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies2009-06-301-2/+2
|
* - cmdline/apt-extracttemplates.cc: likewise;Otavio Salvador2007-10-021-1/+1
|
* * 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
* Merge bzip2-debs branchMatt Zimmerman2004-12-121-1/+1
| | | | | | | | | | | | | | Patches applied: * apt@packages.debian.org/apt--bzip2-debs--0--base-0 tag of apt@packages.debian.org/apt--main--0--patch-30 * apt@packages.debian.org/apt--bzip2-debs--0--patch-1 Create baz branch * apt@packages.debian.org/apt--bzip2-debs--0--patch-2 Implement data.tar.bz2 support
* * Support TMPDIR in apt-extracttemplates (Closes: #191656)Arch Librarian2004-09-201-2/+10
| | | | | | Author: mdz Date: 2003-07-26 00:00:11 GMT * Support TMPDIR in apt-extracttemplates (Closes: #191656)
* G++ 3.2 fixesArch Librarian2004-09-201-1/+3
| | | | | | Author: jgg Date: 2003-01-11 07:18:44 GMT G++ 3.2 fixes
* Fix typo, and convert file.Package to const char.Arch Librarian2004-09-201-3/+3
| | | | | | Author: doogie Date: 2002-11-09 23:08:08 GMT Fix typo, and convert file.Package to const char.
* apt-extracttemplates now prepends the package name when...Arch Librarian2004-09-201-5/+5
| | | | | | Author: doogie Date: 2002-11-09 22:41:55 GMT apt-extracttemplates now prepends the package name when extracting files.
* Don't segfault if the cache can't be made.Arch Librarian2004-09-201-3/+8
| | | | | | | Author: jgg Date: 2002-09-21 21:29:13 GMT Don't segfault if the cache can't be made. Show the filename for all error messages that are due to opening .debs #151835
* commented out a stray debugging line that will break debconfArch Librarian2004-09-201-2/+2
| | | | | | Author: tausq Date: 2002-02-25 03:52:58 GMT commented out a stray debugging line that will break debconf
* Added locale.h for LC_ALLArch Librarian2004-09-201-1/+2
| | | | | | 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
* Fliped comparision operator. Closes: #94618Arch Librarian2004-09-201-5/+8
| | | | | | Author: jgg Date: 2001-04-29 05:40:36 GMT Fliped comparision operator. Closes: #94618
* bump the soname up one (to 3.1.2)Arch Librarian2004-09-201-2/+2
| | | | | | | | Author: tausq Date: 2001-03-03 23:02:39 GMT bump the soname up one (to 3.1.2) fixed a bug in apt-extracttemplates where it might not form the directory name properly
* fixed typo in fileutl.cc (damn you, studly caps...)Arch Librarian2004-09-201-6/+9
| | | | | | | Author: tausq Date: 2001-03-03 22:45:59 GMT fixed typo in fileutl.cc (damn you, studly caps...) make apt-extracttemplates use FileFd
* Extract Templates adjustmentsArch Librarian2004-09-201-95/+94
| | | | | | Author: jgg Date: 2001-02-27 04:26:03 GMT Extract Templates adjustments
* more cleanupsArch Librarian2004-09-201-24/+36
| | | | | | Author: tausq Date: 2001-02-25 05:25:29 GMT more cleanups
* apt-extracttemplates cleanupArch Librarian2004-09-201-53/+267
| | | | | | Author: tausq Date: 2001-02-25 04:53:59 GMT apt-extracttemplates cleanup
* apt-extracttemplates stuff from debconfArch Librarian2004-09-201-0/+142
Author: tausq Date: 2001-02-23 04:28:49 GMT apt-extracttemplates stuff from debconf