From b78c1b42aa76b5164b42bc92ec325194dd90e483 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Feb 18 2019 19:50:05 +0000 Subject: fix race-condition with librepo temp directories Same directory is used for all librepo uses. It should be done inside mock directory. Fixes: https://pagure.io/koji/issue/1250 --- diff --git a/builder/kojid b/builder/kojid index f99ab9a..55338d2 100755 --- a/builder/kojid +++ b/builder/kojid @@ -732,7 +732,7 @@ class BuildRoot(object): elif self.options.topdir: repo_url = '%s/%s' % (self.options.topdir, repo_url) logging.error(repo_url) - tmpdir = os.path.join(self.options.workdir, 'librepo-markExternalRPMs') + tmpdir = os.path.join(self.tmpdir(), 'librepo-markExternalRPMs') koji.ensuredir(tmpdir) h = librepo.Handle() r = librepo.Result()