mmstick / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
615 stars 50 forks source link

get_package_name is broken for /usr/lib/x86_64-linux-gnu/libGL.so.1 #144

Closed H-M-H closed 4 years ago

H-M-H commented 4 years ago

On debian stretch dpkg reports:

> dpkg -S /usr/lib/x86_64-linux-gnu/libGL.so.1    
diversion by glx-diversions from: /usr/lib/x86_64-linux-gnu/libGL.so.1
diversion by glx-diversions to: /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1
libgl1-mesa-glx:amd64: /usr/lib/x86_64-linux-gnu/libGL.so.1

Which results in https://github.com/mmstick/cargo-deb/blob/94ba8f33b943a232bb12f664bbe5c070c7ecc430/src/dependencies.rs#L84-L92 parsing it as the package diversion by glx-diversions from, which obviously is not the desired behavior.

kornelski commented 4 years ago

Fixed, thanks