[Bug 1307747] Re: update-notifier-release upstart job logs excessively

Michael Vogt michael.vogt at canonical.com
Tue Apr 15 06:35:28 UTC 2014


Maybe I'm misreading this, but would:
"""
=== modified file 'debian/update-notifier-release.conf'
--- debian/update-notifier-release.conf	2013-06-03 22:40:21 +0000
+++ debian/update-notifier-release.conf	2014-04-15 06:32:33 +0000
@@ -8,9 +8,9 @@
 
 
 script
-DATE=$(date)
-echo "$DATE new release available"
 if [ -s $FILE ]; then
+   DATE=$(date)
+   echo "$DATE new release available"
     # use the --devel switch to check for a devel release
     /usr/lib/ubuntu-release-upgrader/check-new-release-gtk
 fi
"""

be enough? The /var/lib/ubuntu-release-upgrader/release-upgrade-
available file serves as a "stamp" file that is used to record the last
check time and as the actual information that is displayed to the user
(if the file is non-empty). The debian/release-upgrade-motd runs daily
to check for a new release so the file is touched daily but a new
release is only there if the file is non-empty.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1307747

Title:
  update-notifier-release upstart job logs excessively

Status in “update-notifier” package in Ubuntu:
  Triaged

Bug description:
  The update-notifier-release upstart job logs that a release upgrade is
  available when in fact is not.

  echo "$DATE new release available"
  if [ -s $FILE ]; then

  An empty file is used to keep track of when a new release was last
  checked for so the echo, if it is kept, should be after the file is
  checked to see if it is zero size.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: update-notifier 0.154
  ProcVersionSignature: Ubuntu 3.13.0-22.44-generic 3.13.8
  Uname: Linux 3.13.0-22-generic x86_64
  ApportVersion: 2.14-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Mon Apr 14 16:28:48 2014
  InstallationDate: Installed on 2014-03-06 (39 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140306)
  SourcePackage: update-notifier
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1307747/+subscriptions



More information about the foundations-bugs mailing list