Skip to content
Snippets Groups Projects
Commit 6b7714a8 authored by Johan Lorenzo's avatar Johan Lorenzo
Browse files

Bug 1787674 - Snap: Run `apt-get update` before downloading apt packages. r=jcristau, a=RyanVM

parent 5a8e9ea4
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,12 @@ for locale in $locales; do
"$CANDIDATES_DIR/${VERSION}-candidates/build${BUILD_NUMBER}/linux-x86_64/xpi/${locale}.xpi"
done
# In addition to the packages downloaded below, snapcraft fetches deb packages from ubuntu.com,
# when a snap is built,. 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
# Extract gtk30.mo from Ubuntu language packs
apt download language-pack-gnome-*-base
for i in *.deb; do
......@@ -74,11 +80,6 @@ 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"
......
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