diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-10-26 19:50:49 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-10-26 19:50:53 +0200 |
commit | 8685c75bb777fc5c55c7d33b596845e538e470b7 (patch) | |
tree | 481592b147fb2c246fce439b507a6569ffc679a6 | |
parent | 72483eeaf147430a06139407892036fab458a638 (diff) | |
download | librb-8685c75bb777fc5c55c7d33b596845e538e470b7.tar.gz librb-8685c75bb777fc5c55c7d33b596845e538e470b7.tar.bz2 librb-8685c75bb777fc5c55c7d33b596845e538e470b7.zip |
fix package scp error where dbgsym is ddeb
no_buildbot
-rwxr-xr-x | pkg/debian/create-pkg.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkg/debian/create-pkg.sh b/pkg/debian/create-pkg.sh index 55ed0e3..a729e35 100755 --- a/pkg/debian/create-pkg.sh +++ b/pkg/debian/create-pkg.sh @@ -106,9 +106,18 @@ fi if [ -n "${scp_server}" ] then + dbgsym_pkg="${project}${abi_version}-dbgsym_${version}_${arch}.deb" + + if [ ! -f "${dbgsym_pkg}" ] + then + # on some systems packages with debug symbols are created with + # ddeb extension and not deb + dbgsym_pkg="${project}${abi_version}-dbgsym_${version}_${arch}.ddeb" + fi + echo "copying data to ${scp_server}:${project}/${host_os}/${arch}" scp "${project}-dev_${version}_${arch}.deb" \ - "${project}${abi_version}-dbgsym_${version}_${arch}.deb" \ + "${dbgsym_pkg}" \ "${project}${abi_version}_${version}_${arch}.deb" \ "${project}_${version}.dsc" \ "${project}_${version}.tar.xz" \ |