Unverified Commit c9803565 authored by Maxim Cournoyer's avatar Maxim Cournoyer
Browse files

packaging: Deploy the Ubuntu debug symbol packages.

* scripts/build-package-debian.sh: Revert glob pattern to *deb and add comment.
* scripts/deploy-packages.sh (package_deb): Rename .ddeb to .deb.

Change-Id: I46bd9855bec451102a5ef5046f9ac52b161559c5
parent 766ac63e
...@@ -119,5 +119,5 @@ ln -s packaging/rules/debian . ...@@ -119,5 +119,5 @@ ln -s packaging/rules/debian .
dpkg-buildpackage -b -uc -us ${DPKG_BUILD_OPTIONS} dpkg-buildpackage -b -uc -us ${DPKG_BUILD_OPTIONS}
# Move the artifacts to the output. # Move the artifacts to the output.
mv ../*.deb /opt/output mv ../*deb /opt/output # .deb and .ddeb packages
chown -R ${CURRENT_UID}:${CURRENT_UID} /opt/output chown -R ${CURRENT_UID}:${CURRENT_UID} /opt/output
...@@ -68,14 +68,17 @@ EOF ...@@ -68,14 +68,17 @@ EOF
#################################### ####################################
## Add packages to the repository ## ## Add packages to the repository ##
#################################### ####################################
packages="packages/${DISTRIBUTION}*/*.deb" # Note: reprepro currently only accepts .deb files as input, but
# Ubuntu generates their debug symbol packages as .ddeb (see:
for package in ${packages}; do # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730572). As
# Sign the deb # these are just regular Debian packages, simply append the .deb
# extension to their file name to work around this.
find ./packages -type f -name '*.ddeb' -print0 | xargs -0 -I{} mv {} {}.deb
for package in packages/${DISTRIBUTION}*/*.deb; do
echo "## signing: ${package} ##" echo "## signing: ${package} ##"
dpkg-sig -k ${KEYID} --sign builder ${package} dpkg-sig -k ${KEYID} --sign builder ${package}
# Include the deb
echo "## including ${package} ##" echo "## including ${package} ##"
package_name=$(dpkg -I ${package} | grep -m 1 Package: | 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}') package_arch=$(dpkg -I ${package} | grep -m 1 Architecture: | awk '{print $2}')
......
Supports Markdown
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