empty /var/run/updates-available, rather than removing it

Bug #339066 reported by Dustin Kirkland 
2
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Fix Released
Medium
Dustin Kirkland 

Bug Description

Binary package hint: update-notifier

I have a couple of packages where are consumers of the information published in /var/run/updates-available (namely, update-motd and screen-profiles).

There's a minor issue with debian/99update-notifier removing /var/run/updates-available.

The absence of that file should indicate that current state of updates available is "unknown".

The contents of that file should indicate that the state is known, and what that state is. If updates are available, then the file is populated with the number of regular updates, and security updates available. If that file is empty, then it should indicate that there are no updates available.

This is a trivial change, and I have a 1 line fix for it.

Cheers,
:-Dustin

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Patch attached.

:-Dustin

Changed in update-notifier:
assignee: nobody → kirkland
importance: Undecided → Medium
milestone: none → jaunty-alpha-6
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-notifier - 0.76.5

---------------
update-notifier (0.76.5) jaunty; urgency=low

  * debian/99update-notifier: write an empty /var/run/updates-available,
    rather than removing it; empty indicates that we *know* that there are
    no updates available, whereas missing/remove indicates that the status
    is unknown, LP: #339066

 -- Dustin Kirkland <email address hidden> Sat, 07 Mar 2009 00:32:56 -0600

Changed in update-notifier:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.