Bug 1448239 - Force apt database update so snapcraft can fetch packages r=rail

MozReview-Commit-ID: KAp4dCyHMRA

--HG--
extra : rebase_source : 15210a4ad3e402859f11771bb4a212132b002ac6
This commit is contained in:
Johan Lorenzo 2018-03-23 12:06:51 +01:00
Родитель dd44008d7b
Коммит fe8f5fc199
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -61,6 +61,12 @@ 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"