Use $SNAPCRAFT_PROJECT_DIR instead of relpaths

Launchpad builds are failing due to the use of relative paths to the
project directory from the current directory. Example:
https://launchpadlibrarian.net/487726073/buildlog_snap_ubuntu_bionic_amd64_microstack_BUILDING.txt.gz

SNAPCRAFT_PROJECT_DIR can be used instead.

Change-Id: I17d0876236a8f9d56c9fd5972e5ade9388119584
This commit is contained in:
Dmitrii Shcherbakov 2020-07-08 22:06:22 +03:00
parent f0c0fdd245
commit 47a1e79389
1 changed files with 2 additions and 2 deletions

View File

@ -1007,8 +1007,8 @@ parts:
plugin: nil plugin: nil
source: "" source: ""
override-build: | override-build: |
cat ../../../project/filebeat.pgp.key | apt-key add - cat $SNAPCRAFT_PROJECT_DIR/filebeat.pgp.key | apt-key add -
cat ../../../project/telegraf.pgp.key | apt-key add - cat $SNAPCRAFT_PROJECT_DIR/telegraf.pgp.key | apt-key add -
apt-get install apt-transport-https apt-get install apt-transport-https
echo 'deb https://artifacts.elastic.co/packages/5.x/apt stable main' > /etc/apt/sources.list.d/elastic-5.x.list echo 'deb https://artifacts.elastic.co/packages/5.x/apt stable main' > /etc/apt/sources.list.d/elastic-5.x.list
echo 'deb http://ppa.launchpad.net/telegraf-devs/ppa/ubuntu bionic main' > /etc/apt/sources.list.d/telegraf.x.list echo 'deb http://ppa.launchpad.net/telegraf-devs/ppa/ubuntu bionic main' > /etc/apt/sources.list.d/telegraf.x.list