mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
Fetch should conform to metadata format
This commit is contained in:
parent
6ab7f9f00a
commit
3f4c4ad211
@ -57,9 +57,9 @@ func Fetch(logger io.Writer, cdnUrl string, dir string, fs billy.Filesystem, sto
|
||||
continue
|
||||
}
|
||||
|
||||
lineInfo := strings.Split(line, " ")
|
||||
hash := lineInfo[0]
|
||||
path := lineInfo[1]
|
||||
lineInfo := strings.SplitN(line, " ", 2)
|
||||
hash := strings.TrimSpace(lineInfo[0])
|
||||
path := strings.TrimSpace(lineInfo[1])
|
||||
|
||||
url := fmt.Sprintf("%s/%s", cdnUrl, hash)
|
||||
if storage != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user