mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
non-tmpfs mode should use memfs
This commit is contained in:
parent
a97ccb698b
commit
45ad998d41
@ -189,7 +189,10 @@ func NewProcessData(req *ProcessDataRequest) (*data.ProcessData, error) {
|
||||
}
|
||||
|
||||
fsCreator := func(branch string) (billy.Filesystem, error) {
|
||||
return osfs.New("."), nil
|
||||
if req.TmpFsMode != "" {
|
||||
return osfs.New("."), nil
|
||||
}
|
||||
return memfs.New(), nil
|
||||
}
|
||||
reqFsCreator := fsCreator
|
||||
if req.FsCreator != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user