Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
srpmproc
Commits
1ce1a19a
Commit
1ce1a19a
authored
Jan 01, 2021
by
Mustafa Gezen
Browse files
since lookaside is essentialy a CAS, disable namespacing
parent
db7390bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmd/srpmproc/fetch.go
View file @
1ce1a19a
...
...
@@ -45,8 +45,6 @@ func runFetch(_ *cobra.Command, _ []string) {
log
.
Fatal
(
err
)
}
name
:=
strings
.
Split
(
metadataPath
,
"."
)[
1
]
metadataFile
,
err
:=
os
.
Open
(
metadataPath
)
if
err
!=
nil
{
log
.
Fatalf
(
"could not open metadata file: %v"
,
err
)
...
...
@@ -72,7 +70,7 @@ func runFetch(_ *cobra.Command, _ []string) {
hash
:=
lineInfo
[
0
]
path
:=
lineInfo
[
1
]
url
:=
fmt
.
Sprintf
(
"%s/%s
/%s
"
,
cdnUrl
,
name
,
hash
)
url
:=
fmt
.
Sprintf
(
"%s/%s"
,
cdnUrl
,
hash
)
log
.
Printf
(
"downloading %s"
,
url
)
req
,
err
:=
http
.
NewRequest
(
"GET"
,
url
,
nil
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment