[pacman-dev] [PATCH 2/2] libalpm: Add accessors for the base field

Johannes Löthberg johannes at kyriasis.com
Mon Dec 22 13:13:20 UTC 2014


On 22/12, Johannes Löthberg wrote:
>On 22/12, Allan McRae wrote:
>>On 21/12/14 02:25, Johannes Löthberg wrote:
>>>This commit adds the necessary accessor functions to get the PKGBASE of
>>>a package, forcing the desc file to be parsed.
>>>
>>>Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
>>>---
>>> lib/libalpm/alpm.h     | 6 ++++++
>>> lib/libalpm/be_local.c | 7 +++++++
>>> lib/libalpm/package.c  | 9 +++++++++
>>> lib/libalpm/package.h  | 1 +
>>> 4 files changed, 23 insertions(+)
>>
>>Are we expecting a third patch to actually do something with this?
>>Maybe something like:
>>
>>$ pacman -Si gcc-libs
>>Repository     : core
>>Name           : gcc-libs (gcc)
>>Version        : 4.9.2-1
>>
>
>Not right now, but that would be useful sometimes too, either in 
>parens or as a separate line in -Sii maybe.
>

Oh right, forgot to say that I firstly wanted to implement it to be able 
to show it in expac for scripting. (Not for myself though.)

-- 
Sincerely,
  Johannes Löthberg
  PGP Key ID: 0x50FB9B273A9D0BB5
  https://theos.kyriasis.com/~kyrias/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 1495 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20141222/b6ae826f/attachment.bin>


More information about the pacman-dev mailing list