From 4c57e6dc5a7d2adb9e77509552f76b7b3d683a86 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Aug 23 2023 14:58:05 +0000 Subject: Manual CentOS Debranding --- diff --git a/SOURCES/subscription-manager-1.24.13-centos-remove-redhat.repo.patch b/SOURCES/subscription-manager-1.24.13-centos-remove-redhat.repo.patch new file mode 100644 index 0000000..b8bcb38 --- /dev/null +++ b/SOURCES/subscription-manager-1.24.13-centos-remove-redhat.repo.patch @@ -0,0 +1,11 @@ +diff -uNrp subscription-manager-1.24.13.orig/src/subscription_manager/repofile.py subscription-manager-1.24.13/src/subscription_manager/repofile.py +--- subscription-manager-1.24.13.orig/src/subscription_manager/repofile.py 2019-06-21 18:36:40.000000000 +0000 ++++ subscription-manager-1.24.13/src/subscription_manager/repofile.py 2019-08-07 15:55:54.331501447 +0000 +@@ -345,6 +345,7 @@ class RepoFileBase(object): + return self.path_exists(self.path) + + def create(self): ++ return + if self.path_exists(self.path) or not self.manage_repos: + return + with open(self.path, 'w') as f: