aur icon indicating copy to clipboard operation
aur copied to clipboard

Get depends, makedepends, optdepents ...

Open JanKoppe opened this issue 8 years ago • 1 comments

Hello, first of all, thanks for this neat package! I wish it would return the different Depends fields on a aur.info('package') call. These fields will be optionally returned via the AUR API:

curl "https://aur.archlinux.org/rpc/?v=5&type=info&arg=cower" -s | jq
{
  "version": 5,
  "type": "multiinfo",
  "resultcount": 1,
  "results": [
    {
      "ID": 404289,
      "Name": "cower",
      "PackageBaseID": 44921,
      "PackageBase": "cower",
      "Version": "17-2",
      "Description": "A simple AUR agent with a pretentious name",
      "URL": "http://github.com/falconindy/cower",
      "NumVotes": 868,
      "Popularity": 37.003249,
      "OutOfDate": null,
      "Maintainer": "falconindy",
      "FirstSubmitted": 1293676237,
      "LastModified": 1493044041,
      "URLPath": "/cgit/aur.git/snapshot/cower.tar.gz",
      "Depends": [
        "curl",
        "pacman",
        "yajl"
      ],
      "MakeDepends": [
        "perl"
      ],
      "License": [
        "MIT"
      ],
      "Keywords": [
        "aur"
      ]
    }
  ]
}

Do you intend on adding this feature? Would you like me to help you on this? My python knowledge is rather limited though.

JanKoppe avatar May 26 '17 19:05 JanKoppe

I'm definitely up for adding this feature -- give me a few days and I'll look at it some time. :-)

cdown avatar May 27 '17 13:05 cdown