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
920a300f
Commit
920a300f
authored
Feb 25, 2021
by
Mustafa Gezen
Browse files
stop tmpfs mode from pushing
parent
9a6c027d
Changes
2
Hide whitespace changes
Inline
Side-by-side
cmd/srpmproc/main.go
View file @
920a300f
...
...
@@ -101,12 +101,16 @@ func mn(_ *cobra.Command, _ []string) {
}
if
tmpFsMode
{
tmpDir
,
err
:=
ioutil
.
TempDir
(
os
.
TempDir
(),
"srpmproc-*"
)
tmp
Base
Dir
,
err
:=
ioutil
.
TempDir
(
os
.
TempDir
(),
"srpmproc-*"
)
if
err
!=
nil
{
log
.
Fatalf
(
"could not create temp dir: %v"
,
err
)
}
log
.
Printf
(
"using temp dir: %s"
,
tmpDir
)
log
.
Printf
(
"using temp dir: %s"
,
tmp
Base
Dir
)
fsCreator
=
func
()
billy
.
Filesystem
{
tmpDir
,
err
:=
ioutil
.
TempDir
(
tmpBaseDir
,
"*"
)
if
err
!=
nil
{
log
.
Fatalf
(
"could not create temp dir: %v"
,
err
)
}
return
osfs
.
New
(
tmpDir
)
}
}
...
...
internal/process.go
View file @
920a300f
...
...
@@ -271,6 +271,10 @@ func ProcessRPM(pd *data.ProcessData) {
}
}
if
pd
.
TmpFsMode
{
continue
}
var
hashes
[]
plumbing
.
Hash
var
pushRefspecs
[]
config
.
RefSpec
...
...
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