Skip to content

Commit 02d061d

Browse files
authored
Merge pull request #3406 from SUSE/repofile_fix
Fix repository name
2 parents 31691a2 + 1f04e33 commit 02d061d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bci_build/package/dotnet.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def __init__(self, is_sdk: bool, use_nonprivileged_user: bool = False, **kwargs)
100100
super().__init__(**kwargs)
101101

102102
def __post_init__(self):
103-
if OsVersion.TUMBLEWEED == self.os_version:
104-
raise ValueError(".NET is not supported for openSUSE Tumbleweed")
103+
if self.os_version in (OsVersion.TUMBLEWEED,):
104+
raise ValueError(".NET is not supported for this os_version")
105105

106106
super().__post_init__()
107107

@@ -111,7 +111,7 @@ def __post_init__(self):
111111
self.use_nonprivileged_user = True
112112

113113
self.custom_description = (
114-
"The " + self.pretty_name + " {based_on_container}. "
114+
f"The {self.pretty_name} {{based_on_container}}. "
115115
"The .NET packages contained in this image come from a 3rd-party repository https://packages.microsoft.com/. "
116116
"You can find the respective source code in https://github.com/dotnet. SUSE does not provide any support or warranties."
117117
)
@@ -222,7 +222,7 @@ def prepare_template(self) -> None:
222222

223223
@property
224224
def repo_filename(self):
225-
return "microsoft-dotnet-prod.repo"
225+
return "packages-microsoft-com-prod.repo"
226226

227227
@property
228228
def repo_key_filename(self):

0 commit comments

Comments
 (0)