mirror of
https://git.rockylinux.org/rocky/pungi-rocky.git
synced 2024-11-25 06:11:26 +00:00
sync from upstream script update
This commit is contained in:
parent
a32801f6da
commit
79d8440235
@ -27458,8 +27458,8 @@
|
|||||||
"realmd.aarch64"
|
"realmd.aarch64"
|
||||||
],
|
],
|
||||||
"rocky-release": [
|
"rocky-release": [
|
||||||
"rocky-release-eula.aarch64",
|
"rocky-release-eula.noarch",
|
||||||
"rocky-release.aarch64"
|
"rocky-release.noarch"
|
||||||
],
|
],
|
||||||
"restore": [
|
"restore": [
|
||||||
"restore.aarch64"
|
"restore.aarch64"
|
||||||
@ -29038,8 +29038,8 @@
|
|||||||
"realmd.ppc64le"
|
"realmd.ppc64le"
|
||||||
],
|
],
|
||||||
"rocky-release": [
|
"rocky-release": [
|
||||||
"rocky-release-eula.ppc64le",
|
"rocky-release-eula.noarch",
|
||||||
"rocky-release.ppc64le"
|
"rocky-release.noarch"
|
||||||
],
|
],
|
||||||
"restore": [
|
"restore": [
|
||||||
"restore.ppc64le"
|
"restore.ppc64le"
|
||||||
@ -30562,8 +30562,8 @@
|
|||||||
"realmd.s390x"
|
"realmd.s390x"
|
||||||
],
|
],
|
||||||
"rocky-release": [
|
"rocky-release": [
|
||||||
"rocky-release-eula.s390x",
|
"rocky-release-eula.noarch",
|
||||||
"rocky-release.s390x"
|
"rocky-release.noarch"
|
||||||
],
|
],
|
||||||
"restore": [
|
"restore": [
|
||||||
"restore.s390x"
|
"restore.s390x"
|
||||||
@ -32152,8 +32152,8 @@
|
|||||||
"realmd.x86_64"
|
"realmd.x86_64"
|
||||||
],
|
],
|
||||||
"rocky-release": [
|
"rocky-release": [
|
||||||
"rocky-release-eula.x86_64",
|
"rocky-release-eula.noarch",
|
||||||
"rocky-release.x86_64"
|
"rocky-release.noarch"
|
||||||
],
|
],
|
||||||
"restore": [
|
"restore": [
|
||||||
"restore.x86_64"
|
"restore.x86_64"
|
||||||
|
40633
prepopulate.jsone
Normal file
40633
prepopulate.jsone
Normal file
File diff suppressed because it is too large
Load Diff
291
prepopulate.yaml
291
prepopulate.yaml
File diff suppressed because it is too large
Load Diff
@ -1,20 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
HOWMANY="-$1"
|
set -e
|
||||||
if [ -z $1 ]; then
|
echo "Cloning upstream pungi"
|
||||||
HOWMANY="-1"
|
git clone https://gitlab.com/redhat/centos-stream/release-engineering/pungi-centos.git -b centos-10-stream /var/tmp/c10s
|
||||||
|
|
||||||
|
echo "Copying shared data"
|
||||||
|
if [ -d "shared" ]; then
|
||||||
|
/bin/cp /var/tmp/c10s/shared/* shared/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BRANCH=$(git branch --show-current)
|
echo "Copying prepopulate"
|
||||||
if [[ ! "${BRANCH}" =~ "r10s" ]]; then
|
/bin/cp /var/tmp/c10s/prepopulate.json .
|
||||||
echo "Not a lookahead branch."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Fetching from upstream"
|
echo "Changing to rocky where required in prepopulate"
|
||||||
git fetch https://gitlab.com/redhat/centos-stream/release-engineering/pungi-centos.git centos-10-stream
|
while read -r pattern; do
|
||||||
echo "Formatting patch and applying..."
|
sscript+="$pattern;"
|
||||||
git format-patch --stdout ${HOWMANY} FETCH_HEAD | sed -e 's|centos/|rocky/|' | git apply
|
done <<EOF
|
||||||
echo "!! DIFF OF CHANGES !!"
|
s/"redhat-release"/"rocky-release"/g
|
||||||
git --no-pager diff HEAD
|
s/"redhat-release\..*"/"rocky-release.noarch"/g
|
||||||
|
s/"redhat-release-eula\..*"/"rocky-release-eula.noarch"/g
|
||||||
|
s/"redhat-indexhtml/"rocky-indexhtml/g
|
||||||
|
s/"redhat-logos/"rocky-logos/g
|
||||||
|
s/"redhat-backgrounds/"rocky-backgrounds/g
|
||||||
|
s/"redhat-sb-certs/"rocky-sb-certs/g
|
||||||
|
EOF
|
||||||
|
sed -ie "$sscript" prepopulate.json
|
||||||
|
|
||||||
echo "You may now commit and push."
|
echo "Generating yaml"
|
||||||
|
/bin/bash ./generate-prepop-yaml
|
||||||
|
|
||||||
|
rm -rf /var/tmp/c10s
|
||||||
|
|
||||||
|
git status
|
||||||
|
echo "Completed. Check status above."
|
||||||
|
Loading…
Reference in New Issue
Block a user