pbrisbin / aurget

A simple pacman-like interface to the AUR
GNU General Public License v2.0
69 stars 17 forks source link

Some packages have non-deterministic URLPath #30

Closed pbrisbin closed 9 years ago

pbrisbin commented 9 years ago

aurget assumes that package "foo", is available at $aur/fo/foo/foo.tar.gz. It seems in some cases this is not true. We need to instead rely on the search response's URLPath.

Example: https://aur.archlinux.org/rpc.php?type=multiinfo&arg[]=s3cmd-git

{
  version: 1,
  type: "multiinfo",
  resultcount: 1,
  results: [
    {
      Name: "s3cmd-git",  // URLPath drops the -git
      URLPath: "/packages/s3/s3cmd/s3cmd.tar.gz"
    }
  ]
}

I'm not sure how long this has been broken.

pbrisbin commented 9 years ago

This will take a pretty large restructuring -- we currently rely on the fact that we can get to a PKGBUILD by name without needed to perform an RPC call. We'll need to do more searching up front and should look for a way to cache the results and avoid repeated searching.

pbrisbin commented 9 years ago

This is no longer an issue with AUR4