aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlyas Gasanov <torso.nafi@gmail.com>2019-04-13 23:59:35 +0300
committerRob Austein <sra@hactrn.net>2019-04-15 16:47:00 +0000
commitf7883485cc8ec4c61f07c1f26068d3beade187d2 (patch)
treee4f57210b22bbca2c6b944adf9d0fdf1560396eb
parent5decc49d4672d29c6b91fc01825b9dbef074b00a (diff)
Fix incorrect assumption on output directory name.
While executing the extract command, dpkg-source by default extracts the source package to an output directory named as source-version. If the source package format is 3.0 (quilt), the version string is taken from the orig tarball, not the dsc file. Baiji attempts to use the dsc version string, and fails if no correspondingly named output directory is found after the extraction.
-rwxr-xr-xbaiji2
1 files changed, 1 insertions, 1 deletions
diff --git a/baiji b/baiji
index f39d051..29fc77c 100755
--- a/baiji
+++ b/baiji
@@ -240,7 +240,7 @@ def build(args):
#!/bin/bash -
set -eo pipefail
arch=`dpkg-architecture -qDEB_BUILD_ARCH`
- dpkg-source -x /source/{source}_{version}.dsc
+ dpkg-source -x /source/{source}_{version}.dsc {source}-{version}
cd {source}-{version}
dpkg-buildpackage -b -uc -us 2>&1 | tee ../{source}_{version}_$arch.build
cd ..