image builder should check if master PPA has previously published packages

Bug #1292715 reported by Ursula Junque
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Confirmed
Low
Unassigned

Bug Description

If no packages were published to a PPA, it won't have an index and will fail apt-get update. To avoid image builder to break because of that, we need to add a check to see if any packages were published to the PPA, and only add it to sources.list if so.

The workaround for now is to guarantee a package was previously published in the PPA.

The fix should be something around this:
>>> ppa = lp.me.getPPAByName(name="ppa")
>>> series = ppa.distribution.getSeries(name_or_version="precise")
>>> ppa.getPublishedSources(source_name='xpdf', distro_series=series))
[<source_package_publishing_history at https://api.launchpad.net/devel/~ursinha/+archive/ppa/+sourcepub/2616332>]

Tags: airline
Changed in ubuntu-ci-services-itself:
status: New → Confirmed
importance: Undecided → Low
Ursula Junque (ursinha)
Changed in uci-engine:
importance: Undecided → Low
milestone: none → backlog
status: New → Confirmed
Evan (ev)
no longer affects: ubuntu-ci-services-itself
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.