summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-05 14:57:16 +0200
committerErich Eckner <git@eckner.net>2018-10-05 14:57:16 +0200
commit3dfa86c30cda4b47d644a6ebe7bdb50838712cbb (patch)
treec3ab410c7a3d77c82b190b838914b044d79ddc45 /bin
parent80edbc4dfce3e489ec1d76d82b7d6fe37b675271 (diff)
downloadbuilder-3dfa86c30cda4b47d644a6ebe7bdb50838712cbb.tar.xz
bin/build-packages: remove legacy parsing
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-packages20
1 files changed, 8 insertions, 12 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 64762c4..228f45f 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -198,18 +198,14 @@ while [ "${count}" -ne 0 ] && \
"${master_build_server_user}@${master_build_server}" \
'get-assignment' "${arch}" "${prefered_package}"
) || err=$?
- if [ "$(printf '%s\n' "${package}" | wc -l)" -ne 1 ]; then
- expected_packages=$(
- printf '%s\n' "${package}" | \
- sed '1d'
- )
- package=$(
- printf '%s\n' "${package}" | \
- sed -n '1p'
- )
- else
- expected_packages=''
- fi
+ expected_packages=$(
+ printf '%s\n' "${package}" | \
+ sed '1d'
+ )
+ package=$(
+ printf '%s\n' "${package}" | \
+ sed -n '1p'
+ )
else
package=$(
echo "${forced_package}" | \