scripts: gen_config.py: fix typo causing broken symlinks for feed packages

OpenWrt build system creates symlink package/feeds/<feed>/<package> for
each package being installed from the feeds. Currently the invocation of
gen_config.py script isn't idempotent, because it fails to remove those
symlinks, which in the end might lead to strange build issues due to
stale package symlinks.

So lets fix it by actually removing the directory with package symlinks.

Fixes: PCF-1812
Reported-by: Nikolay Merinov <n.merinov@inango-systems.com>
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
This commit is contained in:
Petr Štetiar 2025-05-26 14:08:45 +00:00
parent 38f4cb10c2
commit 62827e3d83
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3

View File

@ -131,7 +131,7 @@ if len(sys.argv) < 2:
usage(1)
rmtree("./tmp", ignore_errors=True)
rmtree("./packages/feeds/", ignore_errors=True)
rmtree("./package/feeds/", ignore_errors=True)
rmtree("./feeds", ignore_errors=True)
rmtree("./tmp", ignore_errors=True)
if Path("./feeds.conf").is_file():