diff mbox

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

Message ID 20170202112237.4292-1-cascardo@canonical.com
State New
Headers show

Commit Message

Thadeu Lima de Souza Cascardo Feb. 2, 2017, 11:22 a.m. UTC
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@canonical.com>
---
 update-version | 1 +
 1 file changed, 1 insertion(+)

Comments

Tim Gardner Feb. 2, 2017, 1:14 p.m. UTC | #1
Wouldn't this apply to Xenial linux-meta hwe-edge as well ?
Stefan Bader Feb. 2, 2017, 1:38 p.m. UTC | #2

Stefan Bader Feb. 2, 2017, 1:41 p.m. UTC | #3
On 02.02.2017 14:14, Tim Gardner wrote:
> Wouldn't this apply to Xenial linux-meta hwe-edge as well ?
> 
Probably need to be careful with all hwe branches back to Precise.
Thadeu Lima de Souza Cascardo Feb. 2, 2017, 7:21 p.m. UTC | #4
Thanks.
Cascardo.
diff mbox

Patch

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 )