Commit 8d931ba9 authored by aviau's avatar aviau Committed by gerrit2

deploy-packages: properly grep package name

Auto-generated dbgsym packages have two Packages: lines, grep would
match on both.

Change-Id: I05b2111e4f5686358b5075ae5cc8e7982116d645
Tuleap: #872
parent 1b84c109
......@@ -110,8 +110,8 @@ DISTRIBUTION_MANUAL_DOWNLOAD_FOLDER=$(realpath manual-download)/${DISTRIBUTION}
mkdir -p ${DISTRIBUTION_MANUAL_DOWNLOAD_FOLDER}
for package in packages/${DISTRIBUTION}*/*.deb; do
cp ${package} ${DISTRIBUTION_MANUAL_DOWNLOAD_FOLDER}
package_name=$(dpkg -I ${package} | grep Package: | awk '{print $2}')
package_arch=$(dpkg -I ${package} | grep Architecture: | awk '{print $2}')
package_name=$(dpkg -I ${package} | grep -m 1 Package: | awk '{print $2}')
package_arch=$(dpkg -I ${package} | grep -m 1 Architecture: | awk '{print $2}')
cp ${package} ${DISTRIBUTION_MANUAL_DOWNLOAD_FOLDER}/${package_name}_${package_arch}.deb
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment