summaryrefslogtreecommitdiff
path: root/ftparchive
diff options
context:
space:
mode:
authorJérémy Bobbio <lunar@debian.org>2015-03-10 10:09:44 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-03-16 18:02:08 +0100
commit249aec3b7397662a678ea0014f94392085477b09 (patch)
treec72cbab6791b4de68a23fc496df3a62a0c3810bf /ftparchive
parent40bd06bdb5e6b90aa24762300567d0650dbda751 (diff)
stop displaying time of build in online help
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
Diffstat (limited to 'ftparchive')
-rw-r--r--ftparchive/apt-ftparchive.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc
index adf1b6d73..69b936dff 100644
--- a/ftparchive/apt-ftparchive.cc
+++ b/ftparchive/apt-ftparchive.cc
@@ -616,8 +616,7 @@ static void LoadBinDir(vector<PackageMap> &PkgList,Configuration &Setup)
/* */
static bool ShowHelp(CommandLine &)
{
- ioprintf(cout,_("%s %s for %s compiled on %s %s\n"),PACKAGE,PACKAGE_VERSION,
- COMMON_ARCH,__DATE__,__TIME__);
+ ioprintf(cout, "%s %s (%s)\n", PACKAGE, PACKAGE_VERSION, COMMON_ARCH);
if (_config->FindB("version") == true)
return true;