bug-gnulib
[Top][All Lists]
Advanced

[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.

Attachment: 0001-New-module-releasedate-for-determining-the-package-r.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]