[linux-meta Trusty lts-backport-xenial] UBUNTU: fix version suffixes in update-version

Thadeu Lima de Souza Cascardo cascardo at canonical.com
Thu Feb 2 11:22:37 UTC 2017


The versions should be stripped of ~* suffixes in order to get the
proper ABI number.

For example, when the master version is 4.4.0-63.84~14.04.1, the script
would consider 4.4.0-63.84~14.04 as the ABI instead of 4.4.0-63. It
would also end up using the incorrect version and tag for the linux-meta
package.

Stripping the master version from its ~14.04.1 suffix fixes it.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo at canonical.com>
---
 update-version | 1 +
 1 file changed, 1 insertion(+)

diff --git a/update-version b/update-version
index 8f9a4d9..0599968 100755
--- a/update-version
+++ b/update-version
@@ -16,6 +16,7 @@ else
 	changelog=""
 fi
 master_version=`(cd "$master_dir" && LC_ALL=C dpkg-parsechangelog -S Version $changelog)`
+master_version=${master_version%~*}
 
 # Work out our current version taking into account closed sections.
 here_series=$( LC_ALL=C dpkg-parsechangelog -S Distribution )
-- 
2.9.3





More information about the kernel-team mailing list