iksaif / euscan

Ebuild Upstream Scanner
http://euscan.iksaif.net/
GNU General Public License v2.0
15 stars 14 forks source link

version scanner seems to be malfunctioning #26

Open tomboy-64 opened 8 years ago

tomboy-64 commented 8 years ago

When running euscan ocaml-dns it responds with

 * dev-ml/ocaml-dns-0.15.3 [gentoo]

Ebuild: /usr/portage/dev-ml/ocaml-dns/ocaml-dns-0.15.3.ebuild
Repository: gentoo
Homepage: https://github.com/mirage/ocaml-dns https://mirage.io
Description: A pure OCaml implementation of the DNS protocol

 * SRC_URI is 'https://github.com/mirage/ocaml-dns/archive/v0.15.3.tar.gz'
 * Scanning: https://github.com/mirage/ocaml-dns/archive/v${PV}.tar.gz
 * Scanning: https://github.com/mirage/ocaml-dns/archive
 * Generating version from 0.15.3
 * Brute forcing: https://github.com/mirage/ocaml-dns/archive/v${PV}.tar.gz
 * Trying: https://github.com/mirage/ocaml-dns/archive/v0.15.4.tar.gz ... [ !! ]
 * Trying: https://github.com/mirage/ocaml-dns/archive/v0.15.5.tar.gz ... [ !! ]
 * Trying: https://github.com/mirage/ocaml-dns/archive/v0.15.6.tar.gz ... [ !! ]
 * Trying: https://github.com/mirage/ocaml-dns/archive/v0.16.0.tar.gz ... [ !! ]
 * Trying: https://github.com/mirage/ocaml-dns/archive/v0.17.0.tar.gz ... [ !! ]
 * Trying: https://github.com/mirage/ocaml-dns/archive/v0.18.0.tar.gz ... [ !! ]
 * Trying: https://github.com/mirage/ocaml-dns/archive/v1.0.0.tar.gz ... [ !! ]
 * Trying: https://github.com/mirage/ocaml-dns/archive/v2.0.0.tar.gz ... [ !! ]
 * Trying: https://github.com/mirage/ocaml-dns/archive/v3.0.0.tar.gz ... [ !! ]
 * Didn't find any new version, check package's homepage for more informations

even though https://github.com/mirage/ocaml-dns/archive/v0.16.0.tar.gz is available.

Note: The new ebuild is currently being reviewed here. A similar check failed the other day for sigil-0.9.0 (https://github.com/Sigil-Ebook/Sigil/archive/0.9.0.zip).

tomboy-64 commented 8 years ago

It seems to be github's redirection mechanism that confuses euscan. Github redirects the URI in those packages to https://codeload.github.com/mirage/ocaml-dns/tar.gz/v<VERSION>, which in turn would then get downloaded with the correct filename. Though even if I change the SRC_URI in my ebuilds to the redirected codeload.github.com/..., euscan still doesn't give the correct result.

dlan17 commented 7 years ago

hello, does euscan still actively maintained? I'm suffering the same problem.. for example, upstream release net-proxy/shadowsocks-libev-2.5.4 (by 2016/10/10) but only 2.5.0-r1 in portage tree. euscan fail reporting the new versions..

samuelololol commented 7 years ago

In euscan, its url handlers select generic handler, it treats, for example, https://github.com/shadowsocks/shadowsocks-libev/archive/v2.6.3.tar.gz as normal file source. However, when euscan try to access this link, its basename will be translated to another filename name: shadowsocks-libev-2.6.3.tar.gz and euscan will not able to detect.

There are 2 approaches

  1. let euscan to select github handler and make it recognize it. In current implementation, it only handles "'mirror://github/'" source
  2. workaround in generic handler

I need some suggestions and I can PR a fix for it later.