Merge ~juergh/ubuntu-cdimage:deb822-sources-now-subarch into ~mwhudson/ubuntu-cdimage:deb822-sources-now

Proposed by Juerg Haefliger
Status: Needs review
Proposed branch: ~juergh/ubuntu-cdimage:deb822-sources-now-subarch
Merge into: ~mwhudson/ubuntu-cdimage:deb822-sources-now
Diff against target: 20 lines (+5/-2)
1 file modified
lib/cdimage/livefs.py (+5/-2)
Reviewer Review Type Date Requested Status
Michael Hudson-Doyle Pending
Review via email: mp+463262@code.launchpad.net
To post a comment you must log in.

Unmerged commits

52ab07a... by Juerg Haefliger

take subarch into account when copying locally downloaded livefs artifacts

Failed
[FAILED] run-tests:0 (build)
[WAITING] lint:0 (build)
12 of 2 results
2b3ab2b... by Michael Hudson-Doyle

add a README for new stuff

Failed
[FAILED] run-tests:0 (build)
[WAITING] lint:0 (build)
12 of 2 results
231af91... by Michael Hudson-Doyle

fix unbound local in build_image_set_locked

f17b047... by Michael Hudson-Doyle

add a way to use a local download of a livefs

131345a... by Michael Hudson-Doyle

use AptStateManager for germinate too

b5788af... by Michael Hudson-Doyle

set up a apt config for each cpuarch, not each arch

3c84d72... by Michael Hudson-Doyle

allow use of an apt proxy during image building

fbab74a... by Michael Hudson-Doyle

allow overriding the default apt sources for the pool

2fe2885... by Michael Hudson-Doyle

Pass apt config information to debian-cd.

Via environment variables which is a bit icky.

fbe078a... by Michael Hudson-Doyle

add a way to use AptStateManager in germination

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/cdimage/livefs.py b/lib/cdimage/livefs.py
2index 98fd0d4..2ed5e1b 100644
3--- a/lib/cdimage/livefs.py
4+++ b/lib/cdimage/livefs.py
5@@ -733,10 +733,13 @@ def download_live_filesystems(config, builds):
6 if config["CDIMAGE_LOCAL_LIVEFS_ARTIFACTS"]:
7 assert len(config.arches) == 1
8 arch = config.arches[0]
9+ if "+" in arch:
10+ pname = f'{config["PROJECT"]}-{arch.split("+")[1]}'
11+ else:
12+ pname = config["PROJECT"]
13 artifacts_dir = config["CDIMAGE_LOCAL_LIVEFS_ARTIFACTS"]
14 for srcname in os.listdir(artifacts_dir):
15- destname = srcname.replace(
16- f'livecd.{config["PROJECT"]}.', f'{arch}.')
17+ destname = srcname.replace(f"livecd.{pname}.", f"{arch}.")
18 srcpath = os.path.join(artifacts_dir, srcname)
19 destpath = os.path.join(output_dir, destname)
20 logger.info("copying %r to %r", srcpath, destpath)

Subscribers

People subscribed via source and target branches