Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] Correct the steps for rebuilding the repo. #10070

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions cfme/tests/configure/test_register_appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,26 @@ def appliance_preupdate(temp_appliance_preconfig_funcscope):

register and attach the system to RHN
# SERVER=...redhat.com
# yum --downloadonly --downloaddir /therepo install -y rpm-build
# yum install -y rpm-build createrepo
# CFME_STREAM=5.10
#
# # Download the stuff for creating the repo
# yum --downloadonly --downloaddir /tmp/therepo install createrepo rpm-build rpmrebuild
#
# # Copy the downloaded stuff to prevent you to delete it after next
# # finished transaction
# cp /tmp/therepo/* /therepo/
#
# # Install the stuff we need now and create repo
# yum install -y rpm-build createrepo make rsync
# rpmbuild --rebuild http://$SERVER/~jhenner/rpmrebuild/rpmrebuild-2.14-1.src.rpm
# cp rpmbuild/RPMS/noarch/rpmrebuild-2.14-1.noarch.rpm /therepo
# createrepo /therepo

# curl 'http://$SERVER/~jhenner/rpmrebuild_repo/5.XX/rpmrebuild.repo' \
# # Get the repo file and publish the repo dir.
# curl "http://$SERVER/~jhenner/rpmrebuild_repo/$CFME_STREAM/rpmrebuild.repo" \
-o /therepo/rpmrebuild.repo
# vim /therepo/rpmrebuild.repo
# rsync -avP /therepo/ jhenner@$SERVER:public_html/rpmrebuild_repo/5.XX
# vim /therepo/rpmrebuild.repo # Check you got what you expected to get.
# rsync -avP /therepo/ "jhenner@$SERVER:public_html/rpmrebuild_repo/$CFME_STREAM"
"""
appliance = temp_appliance_preconfig_funcscope

Expand Down