From: Daan De Meyer Date: Mon, 3 Jul 2023 11:56:40 +0000 (+0200) Subject: Write dnf/zypper default repos as mkosi.repo X-Git-Tag: v15~93^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d434260383f6887d85f866796094f4416dedfa01;p=thirdparty%2Fmkosi.git Write dnf/zypper default repos as mkosi.repo This is more identifiable than a file named after the distribution since such a file could conceivably be shipped by the distro as well. --- diff --git a/mkosi/distributions/fedora.py b/mkosi/distributions/fedora.py index 2f1330a2f..515c1e2f5 100644 --- a/mkosi/distributions/fedora.py +++ b/mkosi/distributions/fedora.py @@ -134,7 +134,7 @@ def setup_dnf(state: MkosiState, repos: Sequence[Repo]) -> None: ) ) - repofile = state.pkgmngr / f"etc/yum.repos.d/{state.config.distribution}.repo" + repofile = state.pkgmngr / "etc/yum.repos.d/mkosi.repo" if not repofile.exists(): repofile.parent.mkdir(exist_ok=True, parents=True) with repofile.open("w") as f: diff --git a/mkosi/distributions/opensuse.py b/mkosi/distributions/opensuse.py index 881cb808d..4ef779d4b 100644 --- a/mkosi/distributions/opensuse.py +++ b/mkosi/distributions/opensuse.py @@ -96,7 +96,7 @@ def setup_zypper(state: MkosiState, repos: Sequence[Repo]) -> None: ) ) - repofile = state.pkgmngr / f"etc/zypp/repos.d/{state.config.distribution}.repo" + repofile = state.pkgmngr / "etc/zypp/repos.d/mkosi.repo" if not repofile.exists(): repofile.parent.mkdir(exist_ok=True, parents=True) with repofile.open("w") as f: