mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-09-28 21:04:10 +00:00
since lookaside is essentialy a CAS, disable namespacing
This commit is contained in:
parent
db7390bc51
commit
1ce1a19a4f
@ -45,8 +45,6 @@ func runFetch(_ *cobra.Command, _ []string) {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
name := strings.Split(metadataPath, ".")[1]
|
|
||||||
|
|
||||||
metadataFile, err := os.Open(metadataPath)
|
metadataFile, err := os.Open(metadataPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("could not open metadata file: %v", err)
|
log.Fatalf("could not open metadata file: %v", err)
|
||||||
@ -72,7 +70,7 @@ func runFetch(_ *cobra.Command, _ []string) {
|
|||||||
hash := lineInfo[0]
|
hash := lineInfo[0]
|
||||||
path := lineInfo[1]
|
path := lineInfo[1]
|
||||||
|
|
||||||
url := fmt.Sprintf("%s/%s/%s", cdnUrl, name, hash)
|
url := fmt.Sprintf("%s/%s", cdnUrl, hash)
|
||||||
log.Printf("downloading %s", url)
|
log.Printf("downloading %s", url)
|
||||||
|
|
||||||
req, err := http.NewRequest("GET", url, nil)
|
req, err := http.NewRequest("GET", url, nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user