Re: Incorrect use of dpkg conffile suffixes and lintian checks
* Roger Leigh [Sun, 20 Jan 2008 15:30:43 +0000]:
> On Sun, Jan 20, 2008 at 03:10:38PM +0100, Michael Biebl wrote:
> > Regarding run-parts: There is no problem afaik. I quickly tried this:
> > # mkdir test
> > # touch test/foo
> > # touch test/foo.dpkg-old
> > # touch test/foo.dpkg-bak
> > # run-parts --list test
> > test/foo
> This does appear to be the case (I also tested it). But, it doesn't
> match the documentation, nor the source!
> regcomp(&excsre, "^[a-z0-9-].*dpkg-(old|dist|new|tmp)$",
By reading the manual page (and not the source), by *default* run-parts
does not run any file whose name contains a dot, so .dpkg-bak is ignored.
With the --lsbsysinit switch, dots are allowed (as in foo.bar-baz, not
as in foo.bar only, though), but in that case those .dpkg-* files are
purposedly ignored (presumably with the regex above).
In summary, `run-parts` is safe wrt .dpkg-bak, `run-parts --lsbsysinit`
Adeodato Simó dato at net.com.org.es
Debian Developer adeodato at debian.org
We may not return the affection of those who like us, but we always
respect their good judgement.