[PATCH 2/3] adt-run: add --upgrade-to option for upgrade tests
Antonio Terceiro [2014-06-28 19:12 -0300]:
> > > + upgrade = '((apt-get update || (sleep 15; apt-get update)) && apt-get dist-upgrade -y -o Dpkg::Options::="--force-confnew") 2>&1'
> > Aren't conffile prompts for unmodified packages something which
> > upgrade tests ought to detect? That's a rather important part of the
> > upgrade tests that we do in Ubuntu, as often config files become
> > conffiles (and cause a prompt), or vice-versa conffiles become
> > orphaned. At least the first case ought to be caught as conffile
> > prompts for (humanly) unmodified files are a nuisance and confusing.
> TBH that bit was more or less just copied and pasted from what the
> --apt-upgrade option does so I didn't put much thought into this part
> yet. I should probably just drop the -o I guess?
Hm, on second thought I think this is right. We don't want to
eternally hang upgrades on a conffile prompt, we just want to register
it. Ubuntu's upgrade tests just check for the existance of *.dpkg-dist
files , I suppose we can rather do this, and keep the
--force-confnew? And perhaps fail the test if we run into any of them?
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature