summaryrefslogtreecommitdiff
path: root/d1pkgweb-query.go
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2018-06-05 00:01:11 +0100
committerKatolaZ <katolaz@freaknet.org>2018-06-05 00:01:11 +0100
commit9a9c8c830f8fc9f602f5cdbb3499d4a9e85ed578 (patch)
tree41022e5e8322b3d8af8bcfca821056756c594277 /d1pkgweb-query.go
parentc16c23aa558608d98dabe524361f09c8011d6ca5 (diff)
amended suite extraction - FIXME: needs config param
Diffstat (limited to 'd1pkgweb-query.go')
-rw-r--r--d1pkgweb-query.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/d1pkgweb-query.go b/d1pkgweb-query.go
index c5ca19f..4fbe4bf 100644
--- a/d1pkgweb-query.go
+++ b/d1pkgweb-query.go
@@ -144,7 +144,7 @@ func parseLines(s string) []Result {
scanner := bufio.NewScanner(strings.NewReader(s))
for scanner.Scan() {
URL := scanner.Text()
- URLParts := strings.Split(URL, "/")
+ URLParts := strings.Split(URL, "/")[1:]
pkgNameVer := strings.Split(URLParts[len(URLParts)-1], ".html")[0]
Name := strings.Split(pkgNameVer, "_")[0]
Version := strings.Split(pkgNameVer, "_")[1]