[buildd-tools-devel] Bug#870102: Bug#870102: automatically update schroots

Johannes Schauer josch at debian.org
Sun Jul 30 06:31:08 UTC 2017


Quoting Antoine Beaupre (2017-07-29 22:15:29)
> It would be nice if sbuild automatically updated the configured
> schroots. As things stand now, a configured schroot will slowly rot
> down to a point where new builds will have to download a bunch of base
> packages at each run, if sbuild is configured to automatically update
> the schroot at build time. And if it's not, the resulting build will
> be based on bit-rotten code as well.
> 
> I have used the following simple script in /etc/cron.weekly/sbuild:
> 
> #!/bin/sh -e
> 
> cd /etc/sbuild/chroot/
> for chroot in *; do
>     sbuild-update --update --upgrade --clean --autoclean --autoremove $chroot >/dev/null
> done
> 
> I don't like it so much: "> /dev/null" is a crude hack, and it should
> be possible to silence apt more carefully. But it works and is good
> enough for my purpose.
> 
> Could that be considered upstream?

Do you not find the script in /usr/share/doc/sbuild/examples/sbuild-update-all
sufficient?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20170730/f632b586/attachment.sig>


More information about the Buildd-tools-devel mailing list