Adding PPAs could be easier

Bug #1982950 reported by Colin Watson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lpci
Fix Released
Low
Guruprasad

Bug Description

It's possible to add PPAs using `package-repositories`, but it's unnecessarily cumbersome. At the moment it requires something like this:

        package-repositories:
            - type: apt
              formats: [deb]
              components: [main]
              suites: [bionic]
              url: https://ppa.launchpadcontent.net/launchpad/ppa/ubuntu
              # until lpcraft has `type: ppa` or support for specifying a key
              trusted: true

Roughly following https://snapcraft.io/docs/package-repositories, this could instead be:

        package-repositories:
            - type: apt
              formats: [deb]
              ppa: ppa:launchpad/ubuntu/ppa
              suites: [bionic]

(In this suggestion, I went for Launchpad's current archive reference syntax including the distribution rather than the old-style syntax that didn't; and I think it would make logical sense to include `suites`, although Snapcraft doesn't. `add-apt-repository` may be helpful in implementing this, either directly or as a reference.)

Related branches

Guruprasad (lgp171188)
Changed in lpcraft:
status: New → Triaged
importance: Undecided → Low
Guruprasad (lgp171188)
Changed in lpcraft:
status: Triaged → In Progress
assignee: nobody → Guruprasad (lgp171188)
Colin Watson (cjwatson)
description: updated
Guruprasad (lgp171188)
Changed in lpcraft:
status: In Progress → Fix Committed
Guruprasad (lgp171188)
Changed in lpcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.