mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-06-02 00:00:17 +00:00
stop tmpfs mode from pushing
This commit is contained in:
parent
9a6c027db6
commit
920a300fe6
|
@ -101,12 +101,16 @@ func mn(_ *cobra.Command, _ []string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if tmpFsMode {
|
if tmpFsMode {
|
||||||
tmpDir, err := ioutil.TempDir(os.TempDir(), "srpmproc-*")
|
tmpBaseDir, err := ioutil.TempDir(os.TempDir(), "srpmproc-*")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("could not create temp dir: %v", err)
|
log.Fatalf("could not create temp dir: %v", err)
|
||||||
}
|
}
|
||||||
log.Printf("using temp dir: %s", tmpDir)
|
log.Printf("using temp dir: %s", tmpBaseDir)
|
||||||
fsCreator = func() billy.Filesystem {
|
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)
|
return osfs.New(tmpDir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -271,6 +271,10 @@ func ProcessRPM(pd *data.ProcessData) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if pd.TmpFsMode {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
var hashes []plumbing.Hash
|
var hashes []plumbing.Hash
|
||||||
var pushRefspecs []config.RefSpec
|
var pushRefspecs []config.RefSpec
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user