Merge pull request #23 from mstg/srpm-sources-dir-fix

This commit is contained in:
Mustafa Gezen 2022-08-02 13:43:27 +02:00 committed by GitHub
commit c691153e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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",