+i40e-dkms (1.3.47-1~u14.04+mos2) MOS 9.0; urgency=low
+
+ * Cleanup, removing unnecessary version from the i40e-dkms folder name
+
+ -- Mirantis Openstack Linux Team <mos-linux@mirantis.com> Fri, 25 February 2016 16:57:42 +0200
+
i40e-dkms (1.3.47-1~u14.04+mos1) MOS 9.0; urgency=low
* Update the driver i40e version up to 1.3.47
# Copyright (C) 2007 Mario Limonciello
# Copyright (C) 2009 Alberto Milone
+# MOS packages has a suffix in its name
+# separated by the '~', which is actually
+# recognized as a part of the package version.
+# That's wrong and follows to DKMS fall during
+# the installation the package.
+# To fix it the CVERSION was extended with
+# the string "| cut -d\~ -f1" cutting the suffix
+
set -e
NAME=i40e
PACKAGE_NAME=$NAME-dkms
DEB_NAME=$(echo $PACKAGE_NAME | sed 's,_,-,')
-CVERSION=`dpkg-query -W -f='${Version}' $DEB_NAME | awk -F "-" '{print $1}' | cut -d\: -f2`
+CVERSION=`dpkg-query -W -f='${Version}' $DEB_NAME | awk -F "-" '{print $1}' | cut -d\: -f2 | cut -d\~ -f1`
ARCH=`dpkg --print-architecture`
dkms_configure () {