On Fri, Sep 22, 2017 at 11:56:51PM +0100, Raf Czlonka wrote:
> On Fri, Sep 22, 2017 at 11:01:57PM BST, Jesper Wallin wrote:
> > Hi all,
> >
> > My morning routine consists of downloading the latest snapshot files and
> > running the upgrade. To avoid wasting bandwidth and time, I check the
> > local modification time of INSTALL.amd64, fetch the remote one and check
> > if the modification time has changed.
>
> Hi Jesper,
>
> This is unrelated to your diff but what I do instead is to check
> the BUILDINFO file - it's tiny and all the information you need,
> is already there.
Continuing OT: I also rely on the contents of BUILDINFO to determine if
a new snapshot is available:
$ head `which snapshot`
#!/bin/sh
url="$(head -1 /etc/installurl)/snapshots/$(uname -m)"
[ -e BUILDINFO ] && ftp -V -o- "${url}/BUILDINFO" | cmp -s BUILDINFO - &&
exit 1