__package_apt explorer doesn't detect state correctly #198

Closed
opened 2021-11-20 15:21:16 +00:00 by ungleich-gitea · 3 comments

Created by: toupeira

The following manifest:

__package locales-all --state present
require="__package/locales-all" __package locales --state absent

...results in locales-all being installed, and then immediately uninstalled again, while leaving the locales package untouched. After some debugging it turns out that the explorer in __package_apt/explorer/state returns the package name locales-all when the package locales is queried, which will then be used in __package_apt/gencode-remote ;-)

*Created by: toupeira* The following manifest: ``` bash __package locales-all --state present require="__package/locales-all" __package locales --state absent ``` ...results in `locales-all` being installed, and then immediately uninstalled again, while leaving the `locales` package untouched. After some debugging it turns out that the explorer in `__package_apt/explorer/state` returns the package name `locales-all` when the package `locales` is queried, which will then be used in `__package_apt/gencode-remote` ;-)
ungleich-gitea added the
Stale
label 2021-11-20 15:21:16 +00:00
Author
Owner

closed

closed
Author
Owner

Created by: toupeira

Possible duplicate of https://github.com/telmich/cdist/issues/353

I'm not sure why the current explorer uses apt-cache showpkg to check for Reverse Provides, shouldn't the call to dpkg -s work on its own?

*Created by: toupeira* Possible duplicate of https://github.com/telmich/cdist/issues/353 I'm not sure why the current explorer uses `apt-cache showpkg` to check for `Reverse Provides`, shouldn't the call to `dpkg -s` work on its own?
Author
Owner

Created by: telmich

ARGH - will dig into this

*Created by: telmich* ARGH - will dig into this
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#198
No description provided.