You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a free package packageA, a non-free packageB and a packageC with ambiguous licenses
vrms packageA packageB packageC
should yield
packageB: ['nonFreeLicenseA', …]
and possibly in the stderr
Non-free packages: 1 (33.3% of total)
Packages with ambiguous licenses: 1 (33.3% of total)
Use --list-unknowns to list them (or --help for more info)
If a package of given packages is not found either raise an error or write a message to the stderr with the corresponding package and maybe exit with error code 1.
Origin of package information
I suggest to look for the license information for a given package in the following order:
locally installed packages
global package database (from synced repositories, as with option -g)
Expected behaviour
For a free package
packageA
, a non-freepackageB
and apackageC
with ambiguous licensesshould yield
and possibly in the
stderr
If a package of given packages is not found either raise an error or write a message to the
stderr
with the corresponding package and maybe exit with error code 1.Origin of package information
I suggest to look for the license information for a given package in the following order:
-g
)Possible implementation of external lookup
The search in 1. and 2. should be easily implementable. 3. and 4. need some further implementation (either with external package or with some simple HTTP requests, see https://wiki.archlinux.org/title/Official_repositories_web_interface#Exact_name and https://aur.archlinux.org/rpc/swagger)
E.g. for package
coreutils
yields
and for package
vrms-arch
yields
['custom:BSD3']
Of course, this needs also proper handling of errors such as missing internet connection, etc.
The text was updated successfully, but these errors were encountered: