summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-09-06 21:48:07 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-09-06 22:06:00 +0200
commit077bc548a718eb1ee6d9453c0f0c5b3736d0e7ad (patch)
tree5134bef8ba19a9a32fc1f0462638411d906f0cf5
parent48eafb2746863cad785476bf1bf78eb286a7bd8b (diff)
downloadbuildscripts-077bc548a718eb1ee6d9453c0f0c5b3736d0e7ad.tar.gz
buildscripts-077bc548a718eb1ee6d9453c0f0c5b3736d0e7ad.tar.bz2
buildscripts-077bc548a718eb1ee6d9453c0f0c5b3736d0e7ad.zip
sbuild-deb-package: allow difference in Git project name and Debian src:pkg name
-rwxr-xr-xbin/sbuild-deb-package3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package
index 7c3cbab..7dcc1a5 100755
--- a/bin/sbuild-deb-package
+++ b/bin/sbuild-deb-package
@@ -290,8 +290,9 @@ build_packages() {
# build the source package
dpkg-buildpackage -uc -us -S -d
+ DEBSRCPKG="$(dpkg-parsechangelog -S Source)"
cd ..
- DSCFILE="$(pwd)/$(ls -1 "${PROJECT}_"*.dsc | head -n1)"
+ DSCFILE="$(pwd)/$(ls -1 "${DEBSRCPKG}_"*.dsc | head -n1)"
SBUILD_OPTIONS="-n -j2 -sAd ${codename} -k ${GPG_KEY} --build-dep-resolver=aptitude"
SBUILD_OPTIONS_64="${SBUILD_OPTIONS} -c arctica-${l_CODENAME}"