sys: use "Auto-Installed" field for packagelist master
authorJustin Klaassen <justin@tidylabs.app>
Wed, 21 Feb 2024 22:49:32 +0000 (22:49 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 22 Feb 2024 19:07:37 +0000 (19:07 +0000)
commit8ef4c2587ac0041049c67befed281a70cf240769
tree3acb04a26d73f3cd814f2b251be3d02b8e3618be
parentc07ab2f91061ad64209e9aaa1fb1b77061a1af25
sys: use "Auto-Installed" field for packagelist

A change to the build scripts (openwrt/openwrt#14428) removed the "user" flag
from all installed packages in the rootfs. This caused problems for tools
like "auc" which rely on the rpcd packagelist command to determine which
packages to request when building a new image.

This change modifies the packagelist implementation to use the "Auto-Installed"
field rather than the "user" flag in order to filter dependencies from the
returned list of packages. The resulting package list is identical without
relying on the semantics of the "user" flag which is typically used to
indicate which packages have been interactively installed by the user.

Signed-off-by: Justin Klaassen <justin@tidylabs.app>
[use 'bool' instead of 'int' type for booleans]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
sys.c