Source: wmanager
Source-Version: 0.2.1-11
Severity: important
Hi!
The wmanager package is using obsolete absolute paths when stating or
calling update-alternatives. This has been a compatibility symlinks for a
while and got removed in dpkg 1.17.0, I'll reintroduce it in dpkg 1.17.22
but will be removing it again in 1.18.x.
Please stop using absolute paths, as they will suffer this kind of
problem. For more info please see:
<https://lintian.debian.org/tags/command-with-path-in-maintainer-script.html>
although that lintian check does not currently trigger for this issue.
Attached a patch fixing this, and removing the check for u-a, as the
command has been available and present for ages now.
Thanks,
Guillem
diff -Naur wmanager-0.2.1.orig/debian/wmanagerrc-update wmanager-0.2.1/debian/wmanagerrc-update
--- wmanager-0.2.1.orig/debian/wmanagerrc-update 2011-01-06 13:45:21.000000000 +0100
+++ wmanager-0.2.1/debian/wmanagerrc-update 2014-11-17 22:02:16.639180852 +0100
@@ -20,8 +20,7 @@
{
cat "$HOME/.wmanagerrc.user" 2>/dev/null || true
- [ ! -x /usr/sbin/update-alternatives ] ||
- /usr/sbin/update-alternatives --query x-window-manager \
+ update-alternatives --query x-window-manager \
|perl -ne '
m{^Alternative:\s+([/\w.+-]+)$} and $alt = $1;
m{^Priority:\s+(\d+)$} and push @{$p{$1}}, $alt;