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...

31 lines
933 B

From 8db12d9bd15c40a314ab7bd0c4b1da9293847aa4 Mon Sep 17 00:00:00 2001
From: Sergey Cherevko <s.cherevko@msvsphere-os.ru>
Date: Thu, 14 Sep 2023 17:47:20 +0300
Subject: [PATCH 3/4] Disable repo file creation
---
src/subscription_manager/repofile.py | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/subscription_manager/repofile.py b/src/subscription_manager/repofile.py
index 8b523c3..f67b0e1 100644
--- a/src/subscription_manager/repofile.py
+++ b/src/subscription_manager/repofile.py
@@ -369,12 +369,7 @@ class RepoFileBase(object):
Try to create new repo file.
:return: None
"""
- 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):
return content
--
2.41.0