diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-11-11 11:32:16 +0100 |
---|---|---|
committer | Arctica Builder (CHEVALBLANC) <arctica-builder@chevalblanc> | 2015-11-11 11:32:51 +0100 |
commit | d4dddc7c96e0a110b33bc9ddf33f8513cfc4dbad (patch) | |
tree | af838ca63644beed198ec08695de09590ec2ebd3 | |
parent | 7fdf2992eb045916ce14458e526b31c6bed81de6 (diff) | |
download | buildscripts-d4dddc7c96e0a110b33bc9ddf33f8513cfc4dbad.tar.gz buildscripts-d4dddc7c96e0a110b33bc9ddf33f8513cfc4dbad.tar.bz2 buildscripts-d4dddc7c96e0a110b33bc9ddf33f8513cfc4dbad.zip |
Only copy package files, if a filename could be extracted from the .dsc file.
-rwxr-xr-x | bin/sbuild-deb-package | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package index 06d61bd..7d99a3b 100755 --- a/bin/sbuild-deb-package +++ b/bin/sbuild-deb-package @@ -281,7 +281,7 @@ build_packages() { if echo $line | grep -E "^Files:" 1>/dev/null; then break; fi # each line contains a file that is part of the src:package filename="$(echo $line | cut -d" " -f3-)" - cp "${TEMP_DIR}/${filename}" . + if [ -n "$filename" ]; then cp "${TEMP_DIR}/${filename}" .; fi done if [ -z "${OTHERMIRROR}" ]; then nice ${SBUILD} ${SBUILD_OPTIONS_64} "${DSCFILE}" @@ -295,7 +295,7 @@ build_packages() { if echo $line | grep -E "^Files:" 1>/dev/null; then break; fi # each line contains a file that is part of the src:package filename="$(echo $line | cut -d" " -f3-)" - cp "${TEMP_DIR}/${filename}" . + if [ -n "$filename" ]; then cp "${TEMP_DIR}/${filename}" .; fi done if [ -z "${OTHERMIRROR}" ]; then nice ${SBUILD} ${SBUILD_OPTIONS_32} "${DSCFILE}" |