Bug 1448239 - Force apt database update so snapcraft can fetch packages r=rail a=release
authorJohan Lorenzo <jlorenzo@mozilla.com>
Fri, 23 Mar 2018 12:06:51 +0100
changeset 462830 70dcf4f4efa51f6fad39e8e302fc7ef8f667870a
parent 462829 357a7ece1bc2777de4e3f56d60df4a0ab589eada
child 462831 ef1614cd592b831c0f1116270a7ad4934017d645
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrail, release
bugs1448239
milestone60.0
Bug 1448239 - Force apt database update so snapcraft can fetch packages r=rail a=release MozReview-Commit-ID: KAp4dCyHMRA
taskcluster/docker/firefox-snap/runme.sh
--- a/taskcluster/docker/firefox-snap/runme.sh
+++ b/taskcluster/docker/firefox-snap/runme.sh
@@ -56,16 +56,22 @@ done
 
 # Generate snapcraft manifest
 sed -e "s/@VERSION@/${VERSION}/g" -e "s/@BUILD_NUMBER@/${BUILD_NUMBER}/g" snapcraft.yaml.in > "${WORKSPACE}/snapcraft.yaml"
 cp -v "$SCRIPT_DIRECTORY/mimeapps.list" "$WORKSPACE"
 cd "${WORKSPACE}"
 
 # Make sure snapcraft knows we're building amd64, even though we may not be on this arch.
 export SNAP_ARCH='amd64'
+
+# When a snap is built, snapcraft fetches deb packages from ubuntu.com. They may bump packages
+# there and remove the old ones. Updating the database allows snapcraft to find the latest packages.
+# For more context, see 1448239
+apt-get update
+
 snapcraft
 
 mv -- *.snap "$TARGET_FULL_PATH"
 
 cd "$ARTIFACTS_DIR"
 
 # Generate checksums file
 size=$(stat --printf="%s" "$TARGET_FULL_PATH")