소스 검색

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.
Ilyas Gasanov 6 년 전
부모
커밋
f7883485cc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      baiji

+ 1 - 1
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 ..