瀏覽代碼

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