Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
subscription-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
staging
patch
subscription-manager
Commits
4187601a
Verified
Commit
4187601a
authored
3 years ago
by
Louis Abel
Browse files
Options
Downloads
Patches
Plain Diff
fix up beta patches
parent
fe06923a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ROCKY/CFG/subscription-manager.cfg
+4
-4
4 additions, 4 deletions
ROCKY/CFG/subscription-manager.cfg
ROCKY/_supporting/subscription-manager-rocky-remove-redhat.patch
+72
-0
72 additions, 0 deletions
...supporting/subscription-manager-rocky-remove-redhat.patch
with
76 additions
and
4 deletions
ROCKY/CFG/subscription-manager.cfg
+
4
−
4
View file @
4187601a
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
ROCKY/_supporting/subscription-manager-rocky-remove-redhat.patch
0 → 100644
+
72
−
0
View file @
4187601a
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment