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.
30 lines
904 B
30 lines
904 B
From 75078e90d2fb7ab6ef68c8232f7e695acff92e44 Mon Sep 17 00:00:00 2001
|
|
From: tigro <tigro@msvsphere-os.ru>
|
|
Date: Tue, 2 Apr 2024 19:06:58 +0300
|
|
Subject: [PATCH] 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 cc98803..78c7ce2 100644
|
|
--- a/src/subscription_manager/repofile.py
|
|
+++ b/src/subscription_manager/repofile.py
|
|
@@ -375,11 +375,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.44.0
|
|
|