[Piuparts-devel] Bug#632924: Bug#632924: piuparts-slave to recreate tarball(s) beyond certain age
holger at layer-acht.org
Sat Jul 9 23:08:10 UTC 2011
On Donnerstag, 7. Juli 2011, Scott Schaefer wrote:
> Attached patch resolves two items:
please dont do this. always fix seperate issues in seperate patches.
> 1) From TODO ...
> piuparts-slave: if chroot.tgz is older than N days, regenerate it
> - currently this is done via ~piupartss/crontab, but that's a hack
> - only throw away tarballs (and recreate them) after testing that they can
> be recreated
> I hard-coded the MAX_TGZ_AGE at 30 days. Log entry is written when the
> file is recreated due to becoming too old. The "old" file is renamed to
> .old so that,
> should the new file fail to be created, it is simply renamed back and
> piatti crontab entry should be removed after install.
this part looks good - except the hardcoding of MAX_TGZ_AGE - I'd prefer it to
be the default, but thats rather minor.
will merge it ASAP, just not tonight :-)
> 2) Bug in piuparts-slave which prevented running a single section (by
> including section name as command-line argument).
heh. I think I introduced this bug and never noticed as I never do that.
Thanks for catching it!
More information about the Piuparts-devel