From e2c50bee5188bf9eb80baf74e50d5de0fab9f7d3 Mon Sep 17 00:00:00 2001 From: Dmitry Burmistrov Date: Wed, 26 Oct 2016 12:57:05 +0300 Subject: [PATCH] [build] Fix deb binaries list Get actual built deb list instead of provided by dsc Change-Id: Idca277efb01211fcdacc817efa5432e5f509ade7 Related-Bug: #1636488 --- perestroika/publisher.v5/publish-deb-binaries.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perestroika/publisher.v5/publish-deb-binaries.sh b/perestroika/publisher.v5/publish-deb-binaries.sh index 450efde..0d35012 100755 --- a/perestroika/publisher.v5/publish-deb-binaries.sh +++ b/perestroika/publisher.v5/publish-deb-binaries.sh @@ -19,6 +19,8 @@ main() { rsync -avPzt \ -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ${SSH_OPTS}" \ ${SSH_USER}${BUILD_HOST}:${PKG_PATH}/ ${TMP_DIR}/ || error "Can't download packages" + local DEB_BINARIES + DEB_BINARIES=$(find "$TMP_DIR" -name *.deb | awk -F'/' '{print $NF}' | cut -d'_' -f1 | tr '\n' ',') ## Resign source package ## FixMe: disabled for discussion: does it really need to sign @@ -236,7 +238,7 @@ main() { DEB_REPO_URL="http://${REMOTE_REPO_HOST}/${URL_PREFIX}${DEB_REPO_PATH} ${DEB_DIST_NAME} ${DEB_COMPONENT}" DEB_PACKAGENAME=${SRC_NAME} DEB_VERSION=${NEW_VERSION} - DEB_BINARIES=$(cat ${BINSRCLIST} | grep ^Binary | sed 's|^Binary:||; s| ||g') + DEB_BINARIES=$DEB_BINARIES DEB_CHANGE_REVISION=${GERRIT_PATCHSET_REVISION} LP_BUG=${LP_BUG} EOF