aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pkgcore/pytest/plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkgcore/pytest/plugin.py b/src/pkgcore/pytest/plugin.py
index 6578050e..0579a45a 100644
--- a/src/pkgcore/pytest/plugin.py
+++ b/src/pkgcore/pytest/plugin.py
@@ -263,14 +263,14 @@ class EbuildRepo:
f.write(f"EAPI={eapi}\n\n")
f.write(f'DESCRIPTION="{desc}"\n')
f.write(f'HOMEPAGE="{homepage}"\n')
- f.write(f'SLOT="{slot}"\n')
-
if license:
f.write(f'LICENSE="{license}"\n')
# create a fake license
os.makedirs(pjoin(self.path, "licenses"), exist_ok=True)
touch(pjoin(self.path, "licenses", license))
+ f.write(f'SLOT="{slot}"\n')
+
for k, v in kwargs.items():
# handle sequences such as KEYWORDS and IUSE
if isinstance(v, (tuple, list)):