Package: update-notifier
Version: 0.57.3-1
Priority: important
Tags: patch


Update-notifier claims, in both it's package description and manpage, that it
will periodically check for updates daily when, actually, this is not the
case. The sources contain an debian/upgrade-notifier.cron.daily task which
does precisely this but is not installed.

Consequently, users install update-notifier will not get notified of updates
unless they either manually install a task or install packages that already
upgrade the package database (such as cron-apt)

I think that either update-notifier should install the cron task or its
documentation should be enhanced to properly describe its behaviour. I'm
setting this bug as 'important' since the fact that the cron task is not
install impacts its usability.

Attached is a patch that fixes the manpage, the control's file description,
the README (including also a minor fix in that GAMIN also works, not only
FAM) and installs (as an example) debian/upgrade-notifier.cron.daily.

I've not added a 'Recommends: cron-apt | apticron' entry in the control

Please either apply this patch or active the cron task on installation (which
might be redundant if you have cron-apt or apticron already installed).

IMHO bug #414155 and  #386891 are both related since both users reporting
those bugs are mislead into thinking that update-notifier will update the apt
database. Also please see this sub-thread in debian-security that starts
http://lists.debian.org/debian-security/2007/08/msg00122.html (you'll see
that I was also confused as to what update-notifier actually did)

Thanks

Javier
diff -Nru update-notifier-0.57.3.orig/debian/control update-notifier-0.57.3/debian/control
--- update-notifier-0.57.3.orig/debian/control	2007-08-23 15:59:20.000000000 +0200
+++ update-notifier-0.57.3/debian/control	2007-08-23 16:27:03.000000000 +0200
@@ -33,10 +33,14 @@
 Conflicts: upgrade-notifier
 Replaces: upgrade-notifier
 Description: Daemon which notifies about package updates
- Update Notifier will check for the availability of new packages for
- your Debian system on a daily basis. When it detects new versions of
- the packages installed on the system are available, it will add an
- icon on the desktop notification area.
+ Update Notifier can check for the availability of new packages for
+ your Debian system. When it detects new versions of the packages installed on
+ the system are available, it will add an icon on the desktop notification
+ area.
+ .
+ The package database has to be updated periodically for it to work, which
+ can be done with the example task provided or through the installation
+ of cron-apt.
  .
  It will work with any Desktop system that implements the FreeDesktop
  notification area specification, like GNOME, KDE and XFCE.
diff -Nru update-notifier-0.57.3.orig/debian/control.in update-notifier-0.57.3/debian/control.in
--- update-notifier-0.57.3.orig/debian/control.in	2007-08-23 15:59:20.000000000 +0200
+++ update-notifier-0.57.3/debian/control.in	2007-08-23 16:27:57.000000000 +0200
@@ -33,10 +33,14 @@
 Conflicts: upgrade-notifier
 Replaces: upgrade-notifier
 Description: Daemon which notifies about package updates
- Update Notifier will check for the availability of new packages for
- your Debian system on a daily basis. When it detects new versions of
- the packages installed on the system are available, it will add an
- icon on the desktop notification area.
+ Update Notifier can check for the availability of new packages for
+ your Debian system. When it detects new versions of the packages installed on
+ the system are available, it will add an icon on the desktop notification
+ area.
+ .
+ The package database has to be updated periodically for it to work, which
+ can be done with the example task provided or through the installation
+ of cron-apt.
  .
  It will work with any Desktop system that implements the FreeDesktop
  notification area specification, like GNOME, KDE and XFCE.
Los ficheros binarios update-notifier-0.57.3.orig/debian/.control.swp y update-notifier-0.57.3/debian/.control.swp son distintos
diff -Nru update-notifier-0.57.3.orig/debian/update-notifier.1 update-notifier-0.57.3/debian/update-notifier.1
--- update-notifier-0.57.3.orig/debian/update-notifier.1	2007-08-23 15:59:20.000000000 +0200
+++ update-notifier-0.57.3/debian/update-notifier.1	2007-08-23 16:13:32.000000000 +0200
@@ -21,10 +21,20 @@
 .RI [ OPTION... ]
 .SH DESCRIPTION
 .B Update Notifier
-will check for the availability of new packages for your Debian system
-on a daily basis. When it detects new versions of the packages
+can be used to check for the availability of new packages for your Debian system.
+When it detects new versions of the packages
 installed on the system are available, it will add an icon on the
 desktop notification area.
+
+In order to 
+.B Update Notifier
+to detect new avialable updates a task has to run periodically to 
+update the package database. Such as task is available in Debian systems
+if the \fBcron-apt\fR package is installed, a simpler task is available at
+.B /usr/share/doc/upgrade-notifier/examples/upgrade-notifier.cron.daily
+which has to be installed in 
+.B /etc/cron.daily/upgrade-notifier
+
 .SH OPTIONS
 .TP
 .B \-\-debug\-hooks
diff -Nru update-notifier-0.57.3.orig/debian/update-notifier.examples update-notifier-0.57.3/debian/update-notifier.examples
--- update-notifier-0.57.3.orig/debian/update-notifier.examples	1970-01-01 01:00:00.000000000 +0100
+++ update-notifier-0.57.3/debian/update-notifier.examples	2007-08-23 16:10:08.000000000 +0200
@@ -0,0 +1 @@
+debian/upgrade-notifier.cron.daily
diff -Nru update-notifier-0.57.3.orig/README update-notifier-0.57.3/README
--- update-notifier-0.57.3.orig/README	2007-06-26 13:00:11.000000000 +0200
+++ update-notifier-0.57.3/README	2007-08-23 16:08:14.000000000 +0200
@@ -3,12 +3,15 @@
 
 This is a small tray icon that backgrounds itself and checks for
 upgrades. It must be ensured by other means (like a cron job) that a
-regular "apt-get update" is done. This is ensured by installing a
-option into /etc/apt/apt.conf.d to trigger a cron update script. It
-uses FAM to monitor /var/lib/apt/lists/* and
+regular "apt-get update" is done.  
+It uses FAM or GAMIN to monitor /var/lib/apt/lists/* and
 /var/lib/update-notifier/dpkg-run-stamp. If they change it updates
 it's status.
 
+In order to get a cron job running for updates you can either install
+cron-apt or use the cron job provided at
+/usr/share/doc/upgrade-notifier/examples/upgrade-notifier.cron.daily
+
 Needs libgnomeui2.0-dev and libhal-dev to build and gksu to run.
 
 It also supports interactive hooks and reboot notification support,

Attachment: signature.asc
Description: Digital signature

Reply via email to