Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -119,5 +119,5 @@ ln -s packaging/rules/debian .
dpkg-buildpackage -b -uc -us ${DPKG_BUILD_OPTIONS}
# 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
......@@ -68,14 +68,17 @@ EOF
####################################
## Add packages to the repository ##
####################################
packages="packages/${DISTRIBUTION}*/*.deb"
for package in ${packages}; do
# Sign the deb
# Note: reprepro currently only accepts .deb files as input, but
# Ubuntu generates their debug symbol packages as .ddeb (see:
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730572). As
# 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} ##"
dpkg-sig -k ${KEYID} --sign builder ${package}
# Include the deb
echo "## including ${package} ##"
package_name=$(dpkg -I ${package} | grep -m 1 Package: | awk '{print $2}')
package_arch=$(dpkg -I ${package} | grep -m 1 Architecture: | awk '{print $2}')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment