INN commit: branches/2.5/frontends (pullnews.in)
INN Commit
rra at isc.org
Sat Aug 30 11:58:03 UTC 2014
Date: Saturday, August 30, 2014 @ 04:58:03
Author: iulius
Revision: 9663
pullnews: improve wording
* When pullnews runs for the first time against a newsgroup, say "never"
instead of January, 1st 1970 as the last run date.
* Improve spaces, uppercase characters and singular forms when 1 article
is retrieved.
* Update the config file even when the group is empty.
Modified:
branches/2.5/frontends/pullnews.in
-------------+
pullnews.in | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
Modified: pullnews.in
===================================================================
--- pullnews.in 2014-08-30 11:57:30 UTC (rev 9662)
+++ pullnews.in 2014-08-30 11:58:03 UTC (rev 9663)
@@ -616,9 +616,10 @@
if (not $quiet) {
printf LOG "\n%s:\n", $name;
- printf LOG "\tlast checked: %s\n", scalar(localtime($prevDate));
- printf LOG "\t%d articles available. First %d Last %d\n",
- $narticles, $first, $last;
+ printf LOG "\tLast checked: %s\n",
+ $prevDate ? scalar(localtime($prevDate)) : "never";
+ printf LOG "\t%d article%s available (first %d, last %d)\n",
+ $narticles, $narticles != 1 ? "s" : "", $first, $last;
}
if (defined $watermark) {
printf LOG "\tOur previous highest: %d\n", $prevHigh if not $quiet;
@@ -632,6 +633,8 @@
return 0 if ! $name;
if ($narticles == 0) {
print LOG " (nothing to get)\n" unless $quiet;
+ # Just update the time; keep the last known high watermark.
+ $shash->{$group} = [ time, $high ];
return 1;
}
More information about the inn-committers
mailing list