[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#534942: diversion-for-unknown-file: more false positives if output redirection is used

Andreas Beckmann <debian@abeckmann.de> writes:

> the fix recently applied for this bug causes some more false positives,
> probably by treating a trailing digit of the file name as a file
> descriptor being redirected: now I get reports like
>> E: nvidia-glx-legacy-173xx: diversion-for-unknown-file usr/lib/libGL.so. preinst:88
>> E: nvidia-glx-legacy-173xx: diversion-for-unknown-file usr/lib/libGL.so.1. preinst:89
> for the following code:
>> dpkg-divert --add --rename --package nvidia-glx-legacy-173xx --divert /usr/lib/nvidia/libGL.so.1.xlibmesa /usr/lib/libGL.so.1 > /dev/null
>> dpkg-divert --add --rename --package nvidia-glx-legacy-173xx --divert /usr/lib/nvidia/libGL.so.1.2.xlibmesa /usr/lib/libGL.so.1.2 > /dev/null

Thanks for the report.  Looks like it was too aggressive about removing
whitespace before checking for redirects.  I moved where whitespace was
stripped and made it less aggressive, and that seems to have fixed it.

Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: