[PATCH 1/1] UBUNTU: [Debian] Improve tools version message
Andy Whitcroft
apw at canonical.com
Thu Dec 5 18:14:04 UTC 2013
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
debian/tools/generic | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/debian/tools/generic b/debian/tools/generic
index 4aa5649..dd43210 100644
--- a/debian/tools/generic
+++ b/debian/tools/generic
@@ -26,5 +26,12 @@ fi
# Give them a hint as to what to install.
echo "`basename $0` not found for kernel $version" >&2
-echo "You may need to install linux-tools-$version-$flavour" >&2
+if dpkg --compare-versions "$full_version" lt "3.11.0"; then
+ flavour=''
+else
+ flavour="-$flavour"
+fi
+echo "You may need to install linux-tools-$version$flavour for this kernel." >&2
+echo "You may also wish to install linux-tools$flavour or" >&2
+echo "linux-image$flavour-lts-<series> to keep up to date." >&2
exit 2
--
1.8.3.2
More information about the kernel-team
mailing list