[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Proposed module, releasedate
From: |
James Youngman |
Subject: |
Proposed module, releasedate |
Date: |
Thu, 10 Jan 2008 00:08:18 +0000 |
Lots of packages get bug reports for releases that are pretty old.
The idea behind this module is to allow the --version output to emit a
warning when the release is very old, asking the reader to try
upgrading before reporting a bug. You might use it like this for
example:-
/* emit the standard version information first. */
if (release_age (&age))
{
double weeks = age / (86400.0 * 7);
printf(_("This release is %.0f weeks old."),
weeks);
if (weeks > 26.0)
{
printf(_(" If you are considering reporting a bug,\n"
"please upgrade to the most recent release first.\n"));
}
else
{
printf("\n");
}
}
I append the ChangeLog entry and attach the patch.
Thanks,
James.
2008-01-09 James Youngman <address@hidden>
* modules/releasedate: New module for determining the release date
of a package, and its age.
* lib/releasedate.c, lib/releasedate.h, m4/releasedate.m4: New files.
0001-New-module-releasedate-for-determining-the-package-r.patch
Description: Text Data
- Proposed module, releasedate,
James Youngman <=
- Re: Proposed module, releasedate, Bruno Haible, 2008/01/09
- Re: Proposed module, releasedate, James Youngman, 2008/01/10
- human-time? (was: Re: Proposed module, releasedate), Simon Josefsson, 2008/01/10
- Re: human-time?, Bruno Haible, 2008/01/10
- Re: human-time?, Simon Josefsson, 2008/01/10
- Re: human-time?, Simon Josefsson, 2008/01/10
- Re: human-time?, Bruno Haible, 2008/01/10
- Re: human-time?, Paul Eggert, 2008/01/10
- Re: 'make' modification time warning (was: Re: human-time?), Bruno Haible, 2008/01/10
- Re: 'make' modification time warning, Paul Eggert, 2008/01/11