Support placeholder for series in sources

Bug #1796993 reported by Cory Johns
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apt layer
Invalid
Medium
Unassigned

Bug Description

If a charm that supports multiple series has an install source that requires the series be specified, like "deb https://packages.microsoft.com/repos/azure-cli/ xenial main", there's currently no way for the charm to update that series if that source is specified as the default value for the install_sources config.

I would be nice if the layer supported saying something like "deb https://packages.microsoft.com/repos/azure-cli/ {series} main" where "{series}" would be automatically replaced with the correct value.

I know that this config data is currently just passed on to charmhelpers, so maybe this would be better done there, but I wanted to know if it seems reasonable and if it would be better to do in the layer as a pre-process step vs. in charmhelpers?

Revision history for this message
Stuart Bishop (stub) wrote :

It seems reasonable. I don't think we need other variables than 'series', at least to start with.

I think doing this in charm-helpers is preferable, unless there is some reason it is easier to create or maintain in the apt layer. charm-helpers also has a test suite.

Changed in layer-apt:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Cory Johns (johnsca) wrote :
Changed in layer-apt:
status: Triaged → Invalid
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.