forked from mirrors/gecko-dev
Bug 1787674 - Snap: Run apt-get update before downloading apt packages r=jcristau a=bustage
Differential Revision: https://phabricator.services.mozilla.com/D155823
This commit is contained in:
parent
ac589ea41d
commit
b468134832
1 changed files with 6 additions and 5 deletions
|
|
@ -57,6 +57,12 @@ for locale in $locales; do
|
||||||
"$CANDIDATES_DIR/${VERSION}-candidates/build${BUILD_NUMBER}/linux-x86_64/xpi/${locale}.xpi"
|
"$CANDIDATES_DIR/${VERSION}-candidates/build${BUILD_NUMBER}/linux-x86_64/xpi/${locale}.xpi"
|
||||||
done
|
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
|
# Extract gtk30.mo from Ubuntu language packs
|
||||||
apt download language-pack-gnome-*-base
|
apt download language-pack-gnome-*-base
|
||||||
for i in *.deb; do
|
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.
|
# Make sure snapcraft knows we're building amd64, even though we may not be on this arch.
|
||||||
export SNAP_ARCH='amd64'
|
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
|
snapcraft
|
||||||
|
|
||||||
mv -- *.snap "$TARGET_FULL_PATH"
|
mv -- *.snap "$TARGET_FULL_PATH"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue