SOURCES dir should always be available in SRPM mode

Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
This commit is contained in:
Mustafa Gezen 2022-08-02 12:47:23 +02:00
parent 588ddf0716
commit f2526a2a7e
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1

View File

@ -421,6 +421,10 @@ func (c *Controller) BuildSRPMActivity(ctx context.Context, upstreamPrefix strin
if err != nil {
return fmt.Errorf("could not write mock config: %v", err)
}
// The SOURCES dir should always be available. Some packages don't have that
// and Mock complains. Loudly. About that
_ = os.MkdirAll(filepath.Join(cloneDir, "SOURCES"), 0644)
args := []string{
"mock",
"--isolation=simple",