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
debian/remote.go vendored
View File

@@ -12,6 +12,7 @@ import (
"log"
"net/url"
"os"
"path"
"strconv"
"strings"
"time"
@@ -246,6 +247,9 @@ ok:
}
components := strings.Split(stanza["Components"], " ")
for i := range components {
components[i] = path.Base(components[i])
}
if len(repo.Components) == 0 {
repo.Components = components
} else {