From 69bef5b7013e970ce4d9b71c7ed851c9b31d2576 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 31 Jan 2023 12:09:14 -0800 Subject: [PATCH] check-missing: fix --update to actually work A few leftovers from my last work on this script. I didn't use the --update mode then, obviously. Signed-off-by: Adam Williamson --- check-missing | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-missing b/check-missing index 597dbcb3..9a304ee7 100755 --- a/check-missing +++ b/check-missing @@ -70,7 +70,7 @@ for pkgreq in pkgreqs: if missing == list(ARCHES): if pkgreq.getparent() is not None: removedpkgs[pkgname].append(grpid) -# pkgreq.getparent().remove(pkgreq) + pkgreq.getparent().remove(pkgreq) elif missing and reqtype != 'optional': archpkgs[pkgname] = ','.join(present) @@ -138,4 +138,4 @@ for lang in removedlang: # Write out the updated XML file if desired if args.update: - tree.write(latest, encoding="UTF-8", xml_declaration=True) + tree.write(compsfile, encoding="UTF-8", xml_declaration=True)