From 48afca2576f6f6ba54c1076a2d07e956e9caddaf Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sat, 8 Jul 2023 21:44:40 +0200 Subject: upgrade: build openwrt_manifest --- scripts/upgrade.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/upgrade.py b/scripts/upgrade.py index 9b7d9d3..ac71ee2 100644 --- a/scripts/upgrade.py +++ b/scripts/upgrade.py @@ -135,6 +135,10 @@ class Container: def orig_package_set(self): return self._package_set_from_str(self.container.files.get('/etc/openwrt_manifest').decode('ascii')) + def save_orig_package_set(self): + self.execute(['sh', '-c', 'opkg list-installed > tee /etc/openwrt_manifest']) + + def usage(argv): print("Usage:", argv[0], " ") exit(1) @@ -177,6 +181,9 @@ def main(argv): print("Update package list") new.opkg_update() + print("Build /etc/openwrt_manifest") + new.save_orig_package_set() + orig_set = old.orig_package_set() old_set = old.package_set() new_set = new.package_set() -- cgit v1.2.3