Skip to content
Snippets Groups Projects
Verified Commit 4187601a authored by Louis Abel's avatar Louis Abel :tv:
Browse files

fix up beta patches

parent fe06923a
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ add {
}
add {
file: "ROCKY/_supporting/subscription-manager-rocky-remove-redhat.repo.patch"
file: "ROCKY/_supporting/subscription-manager-rocky-remove-redhat.patch"
}
spec_change {
......@@ -13,7 +13,7 @@ spec_change {
search_and_replace {
any: true
find: "%if (0%{?suse_version} && 0%{?suse_version} < 1200)"
replace: "Patch1: ROCKY-use-rocky-syspurposes.patch\nPatch2: subscription-manager-rocky-remove-redhat.repo.patch\n%if (0%{?suse_version} && 0%{?suse_version} < 1200)"
replace: "Patch1: ROCKY-use-rocky-syspurposes.patch\nPatch2: subscription-manager-rocky-remove-redhat.patch\n%if (0%{?suse_version} && 0%{?suse_version} < 1200)"
n: 1
}
......@@ -97,13 +97,13 @@ spec_change {
search_and_replace {
any: true
find: "the Red Hat"
find: "the Enterprise Linux"
replace: "an"
n: -1
}
search_and_replace {
any: true
find: "a Red Hat"
find: "a Enterprise Linux"
replace: "a"
n: -1
}
......
diff -Naurp subscription-manager-1.28.28/etc-conf/rhsm-icon.desktop.in subscription-manager-1.28.28-patch/etc-conf/rhsm-icon.desktop.in
--- subscription-manager-1.28.28/etc-conf/rhsm-icon.desktop.in 2022-02-15 08:23:26.000000000 -0700
+++ subscription-manager-1.28.28-patch/etc-conf/rhsm-icon.desktop.in 2022-04-02 16:57:29.512462480 -0700
@@ -1,6 +1,6 @@
[Desktop Entry]
-_Name=Red Hat Subscription Validity Applet
+_Name=Subscription Validity Applet
Icon=subscription-manager
Exec=rhsm-icon
Terminal=false
diff -Naurp subscription-manager-1.28.28/etc-conf/subscription-manager-cockpit.desktop.in subscription-manager-1.28.28-patch/etc-conf/subscription-manager-cockpit.desktop.in
--- subscription-manager-1.28.28/etc-conf/subscription-manager-cockpit.desktop.in 2022-02-15 08:23:26.000000000 -0700
+++ subscription-manager-1.28.28-patch/etc-conf/subscription-manager-cockpit.desktop.in 2022-04-02 16:57:54.295374442 -0700
@@ -1,5 +1,5 @@
[Desktop Entry]
-_Name=Red Hat Subscription Manager
+_Name=Subscription Manager
Icon=subscription-manager
Type=Application
TryExec=/usr/libexec/cockpit-desktop
diff -Naurp subscription-manager-1.28.28/etc-conf/subscription-manager-gui.desktop.in subscription-manager-1.28.28-patch/etc-conf/subscription-manager-gui.desktop.in
--- subscription-manager-1.28.28/etc-conf/subscription-manager-gui.desktop.in 2022-02-15 08:23:26.000000000 -0700
+++ subscription-manager-1.28.28-patch/etc-conf/subscription-manager-gui.desktop.in 2022-04-02 16:57:43.575412524 -0700
@@ -1,5 +1,5 @@
[Desktop Entry]
-_Name=Red Hat Subscription Manager
+_Name=Subscription Manager
Icon=subscription-manager
Exec=subscription-manager-gui
Terminal=false
diff -Naurp subscription-manager-1.28.28/src/subscription_manager/migrate/migrate.py subscription-manager-1.28.28-patch/src/subscription_manager/migrate/migrate.py
--- subscription-manager-1.28.28/src/subscription_manager/migrate/migrate.py 2022-02-15 08:23:26.000000000 -0700
+++ subscription-manager-1.28.28-patch/src/subscription_manager/migrate/migrate.py 2022-04-02 16:58:22.311274917 -0700
@@ -278,8 +278,7 @@ class MigrationEngine(object):
if self.options.five_to_six:
msgs = [_("This system appears to already be registered to Satellite 6.")]
else:
- msgs = [_("This system appears to already be registered to Red Hat Subscription Management.")]
- msgs.append(_("Please visit https://access.redhat.com/management/consumers/%s to view the profile details.") % identity.uuid)
+ msgs = [_("This system appears to already be registered to Subscription Management.")]
system_exit(1, msgs)
try:
diff -Naurp subscription-manager-1.28.28/src/subscription_manager/repofile.py subscription-manager-1.28.28-patch/src/subscription_manager/repofile.py
--- subscription-manager-1.28.28/src/subscription_manager/repofile.py 2022-02-15 08:23:26.000000000 -0700
+++ subscription-manager-1.28.28-patch/src/subscription_manager/repofile.py 2022-04-02 16:59:27.519043271 -0700
@@ -368,11 +368,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
diff -Naurp subscription-manager-1.28.28/src/subscription_manager/repolib.py subscription-manager-1.28.28-patch/src/subscription_manager/repolib.py
--- subscription-manager-1.28.28/src/subscription_manager/repolib.py 2022-02-15 08:23:26.000000000 -0700
+++ subscription-manager-1.28.28-patch/src/subscription_manager/repolib.py 2022-04-02 16:59:07.055115968 -0700
@@ -87,7 +87,7 @@ class YumPluginManager(object):
@staticmethod
def warning_message(enabled_yum_plugins):
message = _('The yum/dnf plugins: %s were automatically enabled for the benefit of '
- 'Red Hat Subscription Management. If not desired, use '
+ 'Subscription Management. If not desired, use '
'"subscription-manager config --rhsm.auto_enable_yum_plugins=0" to '
'block this behavior.') % ', '.join(enabled_yum_plugins)
return message
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment