mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-26 13:47:40 +00:00
With list of components for Release file, do filepath.Base.
This commit is contained in:
Vendored
+4
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user