Merge lp:~npochet/landscape-charm/landscape-charm into lp:~landscape/landscape-charm/trunk

Proposed by Nicolas Pochet
Status: Rejected
Rejected by: Simon Poirier
Proposed branch: lp:~npochet/landscape-charm/landscape-charm
Merge into: lp:~landscape/landscape-charm/trunk
Diff against target: 12 lines (+1/-1)
1 file modified
lib/apt.py (+1/-1)
To merge this branch: bzr merge lp:~npochet/landscape-charm/landscape-charm
Reviewer Review Type Date Requested Status
🤖 Landscape Builder test results Needs Fixing
Simon Poirier (community) Needs Information
Review via email: mp+367676@code.launchpad.net

Commit message

Run apt update after adding a new source

Description of the change

Run apt update after adding a new source

To post a comment you must log in.
Revision history for this message
Nicolas Pochet (npochet) wrote :
Revision history for this message
Simon Poirier (simpoir) wrote :

This seems like a fix which should be in charmhelpers, which does refresh before importing a repo key (unlike when it's using ppa:something). I don't mind this change, but I'd rather have this fixed upstream and pulled down to all our charms (which probably suffer from this) than individual charm fixes.

review: Needs Information
398. By Nicolas Pochet

Use charmhelpers update instead of landscape charm

Revision history for this message
Nicolas Pochet (npochet) wrote :

> This seems like a fix which should be in charmhelpers, which does refresh
> before importing a repo key (unlike when it's using ppa:something). I don't
> mind this change, but I'd rather have this fixed upstream and pulled down to
> all our charms (which probably suffer from this) than individual charm fixes.
I took your advice into account and modified the use of the configure_source function to do the update there.

Revision history for this message
🤖 Landscape Builder (landscape-builder) :
review: Abstain (executing tests)
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :

Command: make ci-test
Result: Fail
Revno: 398
Branch: lp:~npochet/landscape-charm/landscape-charm
Jenkins: https://ci.lscape.net/job/latch-test-xenial/3941/

review: Needs Fixing (test results)
Revision history for this message
Simon Poirier (simpoir) wrote :

I've submitted a PR to upstream charm-helpers https://github.com/juju/charm-helpers/pull/326 as from the debug-logs, apt update does happen, but fails due to missing keys.

Revision history for this message
Simon Poirier (simpoir) wrote :

After verifying, this change should be unnecessary following upstream charmhelpers update. As such, I've marked this MP as rejected. Please reopen if you don't see the issue resolved. Thanks.

Unmerged revisions

398. By Nicolas Pochet

Use charmhelpers update instead of landscape charm

397. By Nicolas Pochet

Run apt update after adding a new source

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/apt.py'
2--- lib/apt.py 2019-01-17 14:23:49 +0000
3+++ lib/apt.py 2019-05-21 16:55:29 +0000
4@@ -145,7 +145,7 @@
5 if install_sources and source:
6 raise SourceConflictError(install_sources, source)
7 if install_sources:
8- self._fetch.configure_sources()
9+ self._fetch.configure_sources(update=True)
10 return
11 if not source:
12 raise AptNoSourceConfigError()

Subscribers

People subscribed via source and target branches