[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] apt plugin from debians hobbit-plugins package
- To: "hobbit (at) hswn.dk" <hobbit (at) hswn.dk>
- Subject: Re: [hobbit] apt plugin from debians hobbit-plugins package
- From: Rasmus Simon-Riegel <hv11623 (at) devk.de>
- Date: Tue, 05 May 2009 09:10:25 +0200
- References: <49F9A58A.6080409 (at) schoot.org> <0ECC018F-9D3B-49EA-93AC-20385CEA8B2A (at) hands4christ.org> <20090430144406.294100 (at) gmx.net> <49F9C9E9.1060406 (at) makelofine.org> <20090504104926.GA12875 (at) df7cb.de>
- User-agent: Thunderbird 2.0.0.19 (X11/20081227)
i made a little change in /usr/lib/hobbit/client/ext/apt
in @stamp_files add "/var/lib/apticron/last_run" and remove "/var/lib/apt/lists/lock".
before:
my @stamp_files = qw(/var/lib/apt/update_success /var/lib/apt/periodic/update-stamp /var/lib/apt/lists/lock);
after:
my @stamp_files = qw(/var/lib/apt/update_success /var/lib/apt/periodic/update-stamp /var/lib/apticron/last_run);
works fine in lenny
Rasmus
Christoph Berg schrieb:
> Re: dOCtoR MADneSs 2009-04-30 <49F9C9E9.1060406 (at) makelofine.org>
>> On my side I just changed my crontab :
>>
>> apt-get update && touch /var/lib/apt/lists/lock
>>
>> so if the update is succesfull, the mtime of /var/lib/apt/lists/lock is
>> changed, and the apt plugin reports green.
>
> Ah, looks like using a lock file doesn't update the mtime. I didn't
> notice until now as I'm using the "all-included" hack suggested in
> apt.pl:
>
> 44 */4 * * * root ! apt-get -qq update 2>&1 | grep -q . && date -u > /var/lib/apt/update_success
>
> Unfortunately apt-get update even returns 0 in case of some errors
> (iirc unknown apt-keys etc.), so this command checks for an empty
> output of apt-get -qq update instead.
>
> (http://bugs.debian.org/526894)
>
> Christoph