With list of components for Release file, do filepath.Base.

This commit is contained in:
Andrey Smirnov
2014-03-12 18:37:38 +04:00
parent 91da3b2046
commit d61a77d6e3
+4
View File
@@ -12,6 +12,7 @@ import (
"log" "log"
"net/url" "net/url"
"os" "os"
"path"
"strconv" "strconv"
"strings" "strings"
"time" "time"
@@ -246,6 +247,9 @@ ok:
} }
components := strings.Split(stanza["Components"], " ") components := strings.Split(stanza["Components"], " ")
for i := range components {
components[i] = path.Base(components[i])
}
if len(repo.Components) == 0 { if len(repo.Components) == 0 {
repo.Components = components repo.Components = components
} else { } else {