index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2023-07-02 19:22:43 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2023-07-02 19:22:43 +0200 |
commit | c9d63b387c6124bdcd029251118b3d1e0c88a031 (patch) | |
tree | eb0e1b169bfeb9baa20154c02337d10af5568501 /lib/common-functions | |
parent | 8cd34b628cdb21708fe79524c8b64c77a0984bb7 (diff) |
-rwxr-xr-x | lib/common-functions | 10 |
diff --git a/lib/common-functions b/lib/common-functions index 8960b0a..1ab3e72 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -480,9 +480,13 @@ extract_source_directory() { >&2 echo 'Download upstream-package from upstream via buildmaster cache failed. Curl exit code was $res.' return 1 fi - tar -xz -f "${pkgtarfile}" --strip-components=1 -C "${output}" -- "${pkgbase_translated}-${revision}" - printf '\n' >> \ - "${output}/PKGBUILD" + if [ -f "${pkgtarfile}" ]; then + tar -xz -f "${pkgtarfile}" --strip-components=1 -C "${output}" -- "${pkgbase_translated}-${revision}" + printf '\n' >> \ + "${output}/PKGBUILD" + else + >&2 echo 'No upstream tarfile, assuming the package is a local one and has a full PKGBUILD not a diff-PKGBUILD.' + fi fi if [ -n "${mod_revision}" ] \ |