From 23ed108bc98b0b6bc938bb9012dafa9766f11dfe Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Tue, 9 Dec 2025 21:23:58 -0500 Subject: [PATCH] simpleclient.py: Use #auto tag on dependencies when use_apt_resolver is True. This should get them marked auto-installed even though we're explicitly adding them to the package list. ref: linuxmint/mintupdate#938 --- aptkit/simpleclient.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aptkit/simpleclient.py b/aptkit/simpleclient.py index 6ff7d7d..575f2df 100644 --- a/aptkit/simpleclient.py +++ b/aptkit/simpleclient.py @@ -56,7 +56,10 @@ def install_packages(self, packages, use_apt_resolver=True): changes = cache.get_changes() for pkg in changes: if pkg.marked_install and pkg.name not in packages: - packages.append(pkg.name) + # see aptworker.py: _mark_packages_for_installation() - #auto suffix + # marks this extra package as auto-installed even though we've explicitly + # added it here. + packages.append(pkg.name + "#auto") client = aptkit.client.AptClient() client.install_packages(packages, reply_handler=self._simulate_trans, error_handler=self._on_error)