Skip to content

Commit

Permalink
check if bootstrap buildroot has tpmdir
Browse files Browse the repository at this point in the history
Fixes #1351
  • Loading branch information
nikromen committed Apr 21, 2024
1 parent 4c92c9e commit e029228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock/py/mockbuild/buildroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def _setup_nosync(self):
multilib = ('x86_64', 's390x')
# ld_preload need to be same as in bootstrap because we call DNF in bootstrap, but
# but it will load nosync from the final chroot
if self.bootstrap_buildroot is not None:
if self.bootstrap_buildroot is not None and self.bootstrap_buildroot.tmpdir is not None:
self.tmpdir = self.bootstrap_buildroot.tmpdir
if not os.path.isdir(self.tmpdir):
os.mkdir(self.tmpdir, 0o700)
Expand Down

0 comments on commit e029228

Please sign in to comment.