On 11/3/20 10:14 AM, Falk Werner wrote:
> Hello,
Hi Falk,
> I've investigated that /opkg info/ behaves differently when used with an
> ipk file or an already installed package: When used with already
> installed packages, some fields (e.g. Section, Description) are missing.
> /(Details are provided below. IPK file for testing is attached.)/
>
> It seems that this behavior is intended. I'm just curious why these
> fields are missing, when the package is installed. Since the control
> file is copied to /var/lib/opkg/info directory, the information still
> exists.
> The fields are also missing, when they are quieried exlicitly using the
> /--fields/ option.
Yep, the behavior is intended. I believe the rationale was to save
space, by only adding the most important fields to the status file.
However, there is an option to override that behavior, by adding to your
conf:
option verbose_status_file 1
I just realized this option was never documented, apologies. Will submit
a patch soon to add documentation for this option, probably will check
if there are other non documented options too....
> My use case is to provide some kind of graphical frontend to opkg. I
> Intended to group installed packages by their section and to provide the
> package description to the user. Therefore, I was wondering why these
> fields are missing.
verbose_status_file should get you going
> I don't want to change the current behavior, I just want to understand
> the decision.
[1] commit 9e965c23b1b8adfcf38059c9f32319a2dbd85f15
--
Cheers,
Alejandro