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