Adding repo in snapcraft.yaml

Hi am trying to add repository in snapcraft.yaml like below but it failing with errors:

ppa:
     plugin: nil
     override-pull: |
       apt --yes install software-properties-common apt-utils
       add-apt-repository -yu ppa:mc3man/mpv-tests

failing with build error:

[04/Aug/2019:10:37:38 +0000] "CONNECT launchpad.net:443 HTTP/1.0" 200 9202 "-" "-"
[04/Aug/2019:10:37:38 +0000] "CONNECT launchpad.net:443 HTTP/1.0" 200 9180 "-" "-"
gpg: keyring `/tmp/tmp9jcf1xer/secring.gpg' created
gpg: keyring `/tmp/tmp9jcf1xer/pubring.gpg' created
gpg: requesting key ED8E640A from hkp server keyserver.ubuntu.com
[04/Aug/2019:10:37:38 +0000] "GET http://keyserver.ubuntu.com:80/pks/lookup?op=get&options=mr&search=0x8E51A6D660CD88D67D65221D90BD7EACED8E640A HTTP/1.0" 403 1919 "-" "-"
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver helper general error
gpg: keyserver communications error: unknown pubkey algorithm
gpg: keyserver receive failed: unknown pubkey algorithm
gpgkeys: key 8E51A6D660CD88D67D65221D90BD7EACED8E640A can't be retrieved
Failed to add key.
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Downloading parts list                                                         
Failed to run 'override-pull': Exit code was 1.
Build failed 

Any help will be appreciated :slight_smile:

build.snapcraft.io is not able to pull gpg keys properly while adding ppa . this was the issue. my current snapcraft.yaml of olivia has manual fix for that which should not be practiced.

I will wait till this is fixed, its been a whole day no one is bothered about it yet :face_with_raised_eyebrow::face_with_raised_eyebrow: