mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-25 18:01:17 +00:00
snap-seed-parse.py: fix builds with no snaps.
This commit is contained in:
parent
0d35c7645f
commit
b91452e7fe
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
livecd-rootfs (23.10.25) UNRELEASED; urgency=medium
|
||||
|
||||
* snap-seed-parse.py: fix builds with no snaps.
|
||||
|
||||
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Mon, 28 Aug 2023 14:02:08 +1200
|
||||
|
||||
livecd-rootfs (23.10.24) mantic; urgency=medium
|
||||
|
||||
* update-source-catalog: Fix case where a variaton does not point at the
|
||||
|
@ -65,6 +65,10 @@ def make_manifest_from_seed_yaml(path):
|
||||
|
||||
|
||||
def look_for_uc20_model(chroot):
|
||||
systems_dir = f"{chroot}/var/lib/snapd/seed/systems"
|
||||
if not os.path.isdir(systems_dir):
|
||||
log("no systems directory found")
|
||||
return None
|
||||
modeenv = f"{chroot}/var/lib/snapd/modeenv"
|
||||
system_name = None
|
||||
if os.path.isfile(modeenv):
|
||||
@ -76,7 +80,7 @@ def look_for_uc20_model(chroot):
|
||||
log(f"read system name {system_name!r} from modeenv")
|
||||
break
|
||||
if system_name is None:
|
||||
system_names = os.listdir(f"{chroot}/var/lib/snapd/seed/systems")
|
||||
system_names = os.listdir(systems_dir)
|
||||
if len(system_names) == 0:
|
||||
log("no systems found")
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user