cron job should not run if gnu locate is not selected alternative

Bug #310259 reported by Steve Dodd
4
Affects Status Importance Assigned to Milestone
findutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: locate

Using Hardy 8.04.1:

I've just noticed that both locate (GNU locate from findutils) and mlocate run their own copies of updatedb out of cron. The only reason I have GNU locate installed is because dlocate requires it, and dlocate doesn't use the main locate database, so there is no reason to update it.

Could the cron job (/etc/cron.daily/locate) check to see if /usr/bin/updatedb points to the findutils version, and abort if not? Suggested patch attached.

Revision history for this message
Steve Dodd (anarchetic) wrote :
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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