You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
subscription-manager/SOURCES/0003-Disable-repo-file-crea...

30 lines
913 B

From 6eda92395cde8e527f26d24399d86c2cf18d22b3 Mon Sep 17 00:00:00 2001
From: Eugene Zamriy <eugene@zamriy.info>
Date: Sun, 2 Apr 2023 19:03:40 +0300
Subject: [PATCH 3/4] Disable repo file creation
---
src/subscription_manager/repofile.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/subscription_manager/repofile.py b/src/subscription_manager/repofile.py
index c5bbee9..8ed6592 100644
--- a/src/subscription_manager/repofile.py
+++ b/src/subscription_manager/repofile.py
@@ -374,11 +374,7 @@ class RepoFileBase:
"""
Try to create new repo file.
"""
- self.create_dir_path()
- if self.path_exists(self.path) or not self.manage_repos:
- return
- with open(self.path, "w") as f:
- f.write(self.REPOFILE_HEADER)
+ pass
def fix_content(self, content: str) -> str:
return content
--
2.43.5