Skip to content

Commit

Permalink
Fetch should conform to metadata format
Browse files Browse the repository at this point in the history
  • Loading branch information
mstg committed May 10, 2022
1 parent 6ab7f9f commit 3f4c4ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/srpmproc/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3f4c4ad

Please sign in to comment.