forked from Mirror/pmbootstrap
meta: cache: rework cache clear (MR 2252)
This makes a looot more sense. Add a disable method too for use in tests. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
0365438134
commit
2cf44da301
3 changed files with 11 additions and 33 deletions
|
@ -47,7 +47,7 @@ def replace_apkbuild(args: PmbArgs, pkgname, key, new, in_quotes=False):
|
|||
replace(path, "\n" + line_old + "\n", "\n" + line_new + "\n")
|
||||
|
||||
# Verify
|
||||
Cache.clear_cache(pmb.parse.apkbuild)
|
||||
pmb.parse.apkbuild.cache_clear()
|
||||
apkbuild = pmb.parse.apkbuild(path)
|
||||
if apkbuild[key] != str(new):
|
||||
raise RuntimeError("Failed to set '{}' for pmaport '{}'. Make sure"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue