diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-07-08 21:44:40 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-07-08 21:44:40 +0200 |
commit | 48afca2576f6f6ba54c1076a2d07e956e9caddaf (patch) | |
tree | 546a3854ddf94433570ec905fd0464d355ffd0cc /scripts | |
parent | 074697f5629bd9338232689dcafaf6a2e5c022d6 (diff) |
upgrade: build openwrt_manifest
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/upgrade.py | 7 |
1 files changed, 7 insertions, 0 deletions
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], "<old container> <new container> <image>") 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() |