mirror of
https://github.com/coreos/fedora-coreos-config.git
synced 2026-02-05 09:45:30 +01:00
tree: import changes from testing-devel at bb205d9e5c
This commit is contained in:
@@ -277,9 +277,6 @@ def setup_repos(base, treefile):
|
||||
base.repos[repo].enable()
|
||||
eprint(f"- {repo}")
|
||||
|
||||
eprint("Downloading metadata")
|
||||
base.fill_sack(load_system_repo=False)
|
||||
|
||||
|
||||
def get_lockfiles():
|
||||
lockfiles = ['manifest-lock.overrides.yaml']
|
||||
@@ -296,9 +293,13 @@ def graduate_lockfile(base, fn):
|
||||
|
||||
with open(fn) as f:
|
||||
lockfile = yaml.safe_load(f)
|
||||
if 'packages' not in lockfile:
|
||||
if len(lockfile.get('packages', {})) == 0:
|
||||
return
|
||||
|
||||
if base.sack is None:
|
||||
eprint("Downloading metadata")
|
||||
base.fill_sack(load_system_repo=False)
|
||||
|
||||
new_packages = {}
|
||||
for name, lock in lockfile['packages'].items():
|
||||
if ('metadata' not in lock or
|
||||
|
||||
Reference in New Issue
Block a user