On Fri, 06 Nov 2015, Andreas Henriksson wrote:
> > libuuid1 fails to upgrade cleanly in sid under certain circumstances:
> [...]
>
> While the upgrade code is no longer needed (given that the migration
> should already have happened during Wheezy->Jessie upgrade) it
> might be useful to keep it around as noted in the commit message of:
> https://anonscm.debian.org/cgit/collab-maint/pkg-util-linux.git/commit/?id=8f35d7f7f1a309239b08eaa0a821d962478f5037
>
> This commit should fix the problem, verification would be welcome.
It is a roundabout way of fixing this issue. In particular, it ignores
any errors that rmdir might spew and it makes it less obvious that the
exit code from the [ -d ] is the thing that makes the shell end with a
non-zero exit code.
But it should work.
An "exit 0" at the end, or a "if [ -d ... ]; then rmdir .. ; fi" would
also work instead and might be preferable.
Cheers,
--
| .''`. ** Debian **
Peter Palfrader | : :' : The universal
https://www.palfrader.org/ | `. `' Operating System
| `- https://www.debian.org/