Compare commits

...

No commits in common. "a10s" and "c8" have entirely different histories.
a10s ... c8

11 changed files with 1451 additions and 1717 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
/subscription-manager-*.tar.gz
SOURCES/subscription-manager-1.28.44.tar.gz
SOURCES/subscription-manager-cockpit-1.28.44.tar.gz

View File

@ -0,0 +1,2 @@
14b2eace3714eaa4d6d95064c0f561734ec8652f SOURCES/subscription-manager-1.28.44.tar.gz
264ebb8f882bbc887389695ce69e6b69ecc111e4 SOURCES/subscription-manager-cockpit-1.28.44.tar.gz

View File

@ -1,13 +0,0 @@
subscription-manager
====================
The Subscription Manager package provides programs and libraries
to allow users to manage subscriptions and yum/dnf repositories
from the [Candlepin](http://candlepinproject.org/) server.
- Project homepage: http://candlepinproject.org/
- Upstream repository: https://github.com/candlepin/subscription-Manager
## Contribution Guidelines
If you want to do any changes to `subscription-manager.spec`, then please create pull request with same/similar change to upstream repository, because upstream repository manages its own .spec file. If the change would not be contributed to upstream repository, then there is risk that the change provided here could be reverted later by upstream.

View File

@ -1,3 +0,0 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.88.0.post1.dev4+gc070191b.

File diff suppressed because it is too large Load Diff

View File

@ -1,47 +0,0 @@
diff -aruN subscription-manager-1.29.37/etc-conf/syspurpose/valid_fields.json subscription-manager-1.29.37.alma/etc-conf/syspurpose/valid_fields.json
--- subscription-manager-1.29.37/etc-conf/syspurpose/valid_fields.json 2023-08-23 07:18:22
+++ subscription-manager-1.29.37.alma/etc-conf/syspurpose/valid_fields.json 2023-10-09 23:38:40
@@ -1,12 +1,10 @@
{
"role": [
- "Red Hat Enterprise Linux Server",
- "Red Hat Enterprise Linux Workstation",
- "Red Hat Enterprise Linux Compute Node"
+ "AlmaLinux Server",
+ "AlmaLinux Workstation",
+ "AlmaLinux Compute Node"
],
"service_level_agreement": [
- "Premium",
- "Standard",
"Self-Support"
],
"usage": [
diff -aruN subscription-manager-1.29.37/src/subscription_manager/repofile.py subscription-manager-1.29.37.alma/src/subscription_manager/repofile.py
--- subscription-manager-1.29.37/src/subscription_manager/repofile.py 2023-08-23 07:18:22
+++ subscription-manager-1.29.37.alma/src/subscription_manager/repofile.py 2023-10-09 23:38:48
@@ -375,11 +375,7 @@
"""
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
diff -aruN subscription-manager-1.29.37/src/subscription_manager/repolib.py subscription-manager-1.29.37.alma/src/subscription_manager/repolib.py
--- subscription-manager-1.29.37/src/subscription_manager/repolib.py 2023-08-23 07:18:22
+++ subscription-manager-1.29.37.alma/src/subscription_manager/repolib.py 2023-10-09 23:38:57
@@ -92,7 +92,7 @@
def warning_message(enabled_yum_plugins: List[str]) -> str:
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)

View File

@ -1,8 +0,0 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: rhsmci.brew-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: rhsmci.brew-build.cloud.functional}

View File

@ -1,28 +0,0 @@
upstream_project_url: https://github.com/candlepin/subscription-manager
srpm_build_deps:
- python3
- tito
actions:
pre-sync:
- tito build -o . --tgz
specfile_path: subscription-manager.spec
files_to_sync:
- src:
- subscription-manager.spec
- "subscription-manager-*.tar.gz"
dest: .
upstream_tag_template: "subscription-manager-{version}-1"
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-all
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched
- fedora-stable

View File

@ -1 +0,0 @@
SHA512 (subscription-manager-1.30.8.tar.gz) = 1b8ae761796edbc96414fcb2a7ba49348f8280710788133ed45ad463543aba3b807f3f145c9cf76f5672d2038bd0d5eb32640e9b478a1f7d479c7c394b2f03ad

View File

@ -1,61 +0,0 @@
#!/bin/bash
while getopts ":c" opt; do
case $opt in
c) IN_CONTAINER=true;;
*) IN_CONTAINER=false;;
esac
done
# takes in a command and makes sure that it returns success
# and that nothing is sent to stderr
function smoke {
echo -n "Smoke test: '$@': "
ERROR=$("$@" 2>&1> /dev/null)
RETVAL=$?
if [ -z "$ERROR" ] && [[ $RETVAL == 0 ]]; then
echo "PASS"
else
echo "FAIL"
echo "RETVAL: $RETVAL"
echo "STDERR: $ERROR"
exit 1
fi
}
function smoke_container {
echo -n "Smoke Container test: '$@': "
ERROR=$("$@" 2>&1> /dev/null)
RETVAL=$?
if [[ ! -z "$ERROR" ]] && [[ $RETVAL == 78 ]]; then
echo "PASS"
else
echo "FAIL"
echo "RETVAL: $RETVAL"
echo "STDERR: $ERROR"
exit 1
fi
}
SMOKE_CMDS="subscription-manager --help
subscription-manager config
subscription-manager facts
subscription-manager repos
subscription-manager version"
if [[ "$IN_CONTAINER" == "true" ]]; then
TEST_CMD="smoke_container"
SMOKE_CMDS="subscription-manager config
subscription-manager facts
subscription-manager repos
subscription-manager version"
else
TEST_CMD="smoke"
fi
while read -r CMD; do
$TEST_CMD $CMD
done <<<"$SMOKE_CMDS"

View File

@ -1,21 +0,0 @@
---
- hosts: localhost
tags:
- classic
- atomic
roles:
- role: standard-test-basic
tests:
- smoke:
dir: smoke
run: ./smoke.sh
- hosts: localhost
tags:
- container
roles:
- role: standard-test-basic
tests:
- smoke:
dir: smoke
run: ./smoke.sh -c