Skip to content

Replace inxi with repolib#271

Open
darkowlzz wants to merge 1 commit intolinuxmint:masterfrom
darkowlzz:replace-inxi
Open

Replace inxi with repolib#271
darkowlzz wants to merge 1 commit intolinuxmint:masterfrom
darkowlzz:replace-inxi

Conversation

@darkowlzz
Copy link
Copy Markdown

This is an attempt to address the bug reported in linuxmint/mintupdate#1036. As per my understanding of the problem, replacing inxi with native python code using repolib for the same operation seems like a better way to fix the problem, than using the inxi --tty flag that I suggested as a fix, in addition to adding support for Deb822 signed sources.


Replaces inxi for gathering the repository signed-by key path with repolib. Executing inxi as a subprocess results in output in unexpected format under certain circumstances, see linuxmint/mintupdate#1036 (comment) for details. The same can be gathered used repolib, in python, which is already used for loading the sources.

inxi -r doesn't list the signed-by value for Deb822 sources. repolib supports extracting signed-by value for both legacy and Deb822 formatted sources.

Adds basic unit tests that verifies the repository key path retrieval for various scenarios.

NOTE: I'm not so certain about the placement of the tests. Looking at the other repositories, it seemed it's better to place it at the root of the project as the usr/lib/linuxmint directory is copied to the root of the filesystem when installed.
Also, I could not find any existing reference for running the tests in CI in other repositories. If this patch is acceptable and the tests should be run in CI, I can add a github actions workflow for running the tests.

Replaces inxi for gathering the repository signed-by key path with
repolib. Executing inxi as a subprocess results in output in unexpected
format under certain circumstances. The same can be gathered used
repolib, in python, which is already used for loading the sources.

`inxi -r` doesn't list the signed-by value for Deb822 sources. repolib
supports extracting signed-by value for both legacy and Deb822 formatted
sources.

Adds basic unit tests that verifies the repository key path retrieval
for various scenarios.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant