mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +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 {
|
||||
tmpDir, err := ioutil.TempDir(os.TempDir(), "srpmproc-*")
|
||||
tmpBaseDir, 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", tmpBaseDir)
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
@ -271,6 +271,10 @@ func ProcessRPM(pd *data.ProcessData) {
|
||||
}
|
||||
}
|
||||
|
||||
if pd.TmpFsMode {
|
||||
continue
|
||||
}
|
||||
|
||||
var hashes []plumbing.Hash
|
||||
var pushRefspecs []config.RefSpec
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user