Fix remove redhat repo patch

This commit is contained in:
eabdullin 2022-10-24 11:48:22 +03:00
parent 2466e72f90
commit 5d00bcf108

View File

@ -1,14 +1,14 @@
diff -Nurp subscription-manager-1.27.11.orig/src/subscription_manager/repofile.py subscription-manager-1.27.11/src/subscription_manager/repofile.py
--- subscription-manager-1.27.11.orig/src/subscription_manager/repofile.py 2020-07-28 11:06:10.000000000 -0500
+++ subscription-manager-1.27.11/src/subscription_manager/repofile.py 2020-08-05 16:48:00.911709258 -0500
@@ -368,11 +368,7 @@ class RepoFileBase(object):
diff -aruN subscription-manager-1.29.30/src/subscription_manager/repofile.py subscription-manager-1.29.30.alma/src/subscription_manager/repofile.py
--- subscription-manager-1.29.30/src/subscription_manager/repofile.py 2022-08-09 23:10:15.000000000 +0300
+++ subscription-manager-1.29.30.alma/src/subscription_manager/repofile.py 2022-10-24 11:47:04.000000000 +0300
@@ -370,11 +370,7 @@
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:
- with open(self.path, "w") as f:
- f.write(self.REPOFILE_HEADER)
+ pass