diff options
author | Michal Sojka <sojkam1@fel.cvut.cz> | 2008-02-07 11:18:51 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-02-09 04:51:47 -0500 |
commit | ed2c9fa53b7a3e240a64e6e97494d72d0f80eed0 (patch) | |
tree | 0eccb7dd44cbdd5af05f81dde8e5e76ea65b43e3 /scripts/package/builddeb | |
parent | ec7748b59e214e2c6b7d21ca5f26a760fd6e142b (diff) |
Kbuild: Fix deb-pkg target to work with kernel versions ending with -<text-without-digit>
If CONIFIG_LOCALVERSION is set for example to -loop, the following error
message was generated.
dpkg-deb - error: Debian revision (`loop') doesn't contain any digits
dpkg-deb: 1 errors in control file
The patch solves this by adding a numeric revision to package version.
Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/package/builddeb')
-rw-r--r-- | scripts/package/builddeb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 0f657b5f3bc8..ba6bf5d5abf9 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
@@ -13,6 +13,7 @@ set -e | |||
13 | 13 | ||
14 | # Some variables and settings used throughout the script | 14 | # Some variables and settings used throughout the script |
15 | version=$KERNELRELEASE | 15 | version=$KERNELRELEASE |
16 | revision=`cat .version` | ||
16 | tmpdir="$objtree/debian/tmp" | 17 | tmpdir="$objtree/debian/tmp" |
17 | packagename=linux-$version | 18 | packagename=linux-$version |
18 | 19 | ||
@@ -65,7 +66,7 @@ done | |||
65 | name="Kernel Compiler <$(id -nu)@$(hostname -f)>" | 66 | name="Kernel Compiler <$(id -nu)@$(hostname -f)>" |
66 | # Generate a simple changelog template | 67 | # Generate a simple changelog template |
67 | cat <<EOF > debian/changelog | 68 | cat <<EOF > debian/changelog |
68 | linux ($version) unstable; urgency=low | 69 | linux ($version-$revision) unstable; urgency=low |
69 | 70 | ||
70 | * A standard release | 71 | * A standard release |
71 | 72 | ||