kpatch-build: fixup source package version construction

Bash doesn't correctly format the version string which causes the source
package to not be downloaded correctly.

Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
This commit is contained in:
Chris J Arges 2014-10-17 15:38:05 +02:00
parent e5dd825f15
commit 1831030c1d

View File

@ -380,7 +380,7 @@ else
# The linux-source packages are formatted like the following for: # The linux-source packages are formatted like the following for:
# ubuntu: linux-source-3.13.0_3.13.0-24.46_all.deb # ubuntu: linux-source-3.13.0_3.13.0-24.46_all.deb
# debian: linux-source-3.14_3.14.7-1_all.deb # debian: linux-source-3.14_3.14.7-1_all.deb
pkgver="$KVER_$(dpkg-query -W -f='${Version}' linux-image-$ARCHVERSION)" pkgver="${KVER}_$(dpkg-query -W -f='${Version}' linux-image-$ARCHVERSION)"
pkgname="linux-source-${pkgver}_all" pkgname="linux-source-${pkgver}_all"
cd $TEMPDIR cd $TEMPDIR