summaryrefslogtreecommitdiff
path: root/cmdline/apt-extracttemplates.cc
AgeCommit message (Collapse)Author
2019-01-24Merge and reuse tmp file handling across the boardDavid Kalnischkies
Having many rather similar implementations especially if one is exported while others aren't (and the rest of it not factored out at all) seems suboptimal.
2018-05-07Remove obsolete RCS keywordsGuillem Jover
Prompted-by: Jakub Wilk <jwilk@debian.org>
2017-07-12Reformat and sort all includes with clang-formatJulian Andres Klode
This makes it easier to see which headers includes what. The changes were done by running git grep -l '#\s*include' \ | grep -E '.(cc|h)$' \ | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/' To modify all include lines by adding a space, and then running ./git-clang-format.sh.
2017-07-12Drop cacheiterators.h includeJulian Andres Klode
Including cacheiterators.h before pkgcache.h fails because pkgcache.h depends on cacheiterators.h.
2016-05-28look into the right textdomain for apt-utils againDavid Kalnischkies
Broken in e7e10e47476606e3b2274cf66b1e8ea74b236757 by looking always into "apt" while we ship some tools in "apt-utils"…
2015-11-29drop some needlessly public declarations in libapt-privateDavid Kalnischkies
Git-Dch: Ignore
2015-11-29use function pointers instead of weak symbols for cmdline parsingDavid Kalnischkies
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.
2015-11-04revamp all tools help messagesDavid Kalnischkies
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.
2015-11-04deal with --version more centrallyDavid Kalnischkies
Git-Dch: Ignore
2015-11-04move apts cmdline helper type into -privateDavid Kalnischkies
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
2015-11-04generate commands array after config is loadedDavid Kalnischkies
This ensures that location strings loaded from a location specified via configuration (Dir::Locale) effect the help messages for commands. Git-Dch: Ignore
2015-11-04deduplicate main methodsDavid Kalnischkies
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
2015-11-04split up help messages for simpler reuseDavid Kalnischkies
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
2015-03-16stop displaying time of build in online helpJérémy Bobbio
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
2014-11-09streamline display of --help in all toolsDavid Kalnischkies
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.
2014-07-08Fix ar and tar code to be LFS-safeGuillem Jover
This is an ABI break. Closes: #742882
2014-05-29cmdline/apt-extracttemplates.cc: remove unused private varMichael Vogt
Reported-By: clang -Wall
2014-05-10improve pkgTagSection scanning and parsingDavid Kalnischkies
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.
2014-03-27Use mkstemp() in apt-extracttemplaes (closes: #741627)Michael Vogt
Use mkstemp() in apt-extractemplates and add a integrationtest for apt-extracttemplates too. Thanks to Steve Kemp for the report.
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies
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)
2014-03-13warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies
Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
2014-03-13warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies
Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
2014-02-22Add support for data.tar, control.tar and control.tar.xzGuillem Jover
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.
2013-12-22factor GetTempDir outMichael Vogt
2012-05-05ensure that apti18n.h is included last as advertised (Closes: #671623)David Kalnischkies
2012-03-22the previously used VERSION didn't work everywhere so we are switchingDavid Kalnischkies
to the more standard PACKAGE_VERSION and make it work in every file
2012-03-04fix a bunch of cppcheck "(warning) Member variable '<#>' is notDavid Kalnischkies
initialized in the constructor." messages (no functional change)
2011-09-19use forward declaration in headers if possible instead of includesDavid Kalnischkies
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies
2010-06-04Switch away from the now deprecated methods for Cache buildingDavid Kalnischkies
2009-06-30add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies
2007-10-02 - cmdline/apt-extracttemplates.cc: likewise;Otavio Salvador
2007-08-01* Applied patch from Aurelien Jarno <aurel32@debian.org> to fix wrongOtavio Salvador
directory downloading on non-linux architectures (closes: #435597)
2005-01-20Correct typo in Usage message : s/arbitary/arbitrary. Unfuzzy translations. ↵Christian Perrier
Closes: #291172 * cmdline/*cc : s/arbitary/arbitrary * po/*po : unfuzzy translations * po/apt-all.pot : updated from source code
2004-12-12Merge bzip2-debs branchMatt Zimmerman
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
2004-09-20* Support TMPDIR in apt-extracttemplates (Closes: #191656)Arch Librarian
Author: mdz Date: 2003-07-26 00:00:11 GMT * Support TMPDIR in apt-extracttemplates (Closes: #191656)
2004-09-20G++ 3.2 fixesArch Librarian
Author: jgg Date: 2003-01-11 07:18:44 GMT G++ 3.2 fixes
2004-09-20Fix typo, and convert file.Package to const char.Arch Librarian
Author: doogie Date: 2002-11-09 23:08:08 GMT Fix typo, and convert file.Package to const char.
2004-09-20apt-extracttemplates now prepends the package name when...Arch Librarian
Author: doogie Date: 2002-11-09 22:41:55 GMT apt-extracttemplates now prepends the package name when extracting files.
2004-09-20Don't segfault if the cache can't be made.Arch Librarian
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
2004-09-20commented out a stray debugging line that will break debconfArch Librarian
Author: tausq Date: 2002-02-25 03:52:58 GMT commented out a stray debugging line that will break debconf
2004-09-20Added locale.h for LC_ALLArch Librarian
Author: jgg Date: 2002-02-15 03:40:00 GMT Added locale.h for LC_ALL
2004-09-20setup textdomain/etc for i18n stuffArch Librarian
Author: jgg Date: 2002-01-09 04:59:44 GMT setup textdomain/etc for i18n stuff
2004-09-20Fliped comparision operator. Closes: #94618Arch Librarian
Author: jgg Date: 2001-04-29 05:40:36 GMT Fliped comparision operator. Closes: #94618
2004-09-20bump the soname up one (to 3.1.2)Arch Librarian
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
2004-09-20fixed typo in fileutl.cc (damn you, studly caps...)Arch Librarian
Author: tausq Date: 2001-03-03 22:45:59 GMT fixed typo in fileutl.cc (damn you, studly caps...) make apt-extracttemplates use FileFd
2004-09-20Extract Templates adjustmentsArch Librarian
Author: jgg Date: 2001-02-27 04:26:03 GMT Extract Templates adjustments
2004-09-20more cleanupsArch Librarian
Author: tausq Date: 2001-02-25 05:25:29 GMT more cleanups
2004-09-20apt-extracttemplates cleanupArch Librarian
Author: tausq Date: 2001-02-25 04:53:59 GMT apt-extracttemplates cleanup
2004-09-20apt-extracttemplates stuff from debconfArch Librarian
Author: tausq Date: 2001-02-23 04:28:49 GMT apt-extracttemplates stuff from debconf