diff --git a/packaging/linux/deb/buildpackage.sh b/packaging/linux/deb/buildpackage.sh index ce2ed38f96..99010bef1d 100755 --- a/packaging/linux/deb/buildpackage.sh +++ b/packaging/linux/deb/buildpackage.sh @@ -49,8 +49,11 @@ pushd root # Calculate md5sums and clean up the /usr/ part of them md5sum `find . -type f | grep -v '^[.]/DEBIAN/'` | sed 's/\.\/usr\//usr\//g' > DEBIAN/md5sums +# Replace any dashes in the version string with periods +PKGVERSION=`echo $1 | sed "s/-/\\./g"` + # Start building, the file should appear in the output directory -fakeroot dpkg-deb -b . $3 +fakeroot dpkg-deb -b . $3/openra_${PKGVERSION}_all.deb # Clean up popd