forked from sig_core/toolkit
turn on sed
This commit is contained in:
parent
7161e1560b
commit
f00104f6a7
@ -8,6 +8,8 @@ for y in "${ALL_REPOS[@]}"; do
|
|||||||
test -d "${STAGING_ROOT}/${RELEASE_DIR}/${y}/source/tree"
|
test -d "${STAGING_ROOT}/${RELEASE_DIR}/${y}/source/tree"
|
||||||
ret_val=$?
|
ret_val=$?
|
||||||
if [ "$ret_val" -eq 0 ]; then
|
if [ "$ret_val" -eq 0 ]; then
|
||||||
|
sed -i '/<open-size><\/open-size>/d' \
|
||||||
|
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/source/tree/repodata/repomd.xml"
|
||||||
test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \
|
test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \
|
||||||
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/source/tree/repodata/repomd.xml"
|
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/source/tree/repodata/repomd.xml"
|
||||||
else
|
else
|
||||||
@ -25,6 +27,8 @@ for x in "${ARCHES[@]}"; do
|
|||||||
test -d "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/${z}"
|
test -d "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/${z}"
|
||||||
ret_val=$?
|
ret_val=$?
|
||||||
if [ "$ret_val" -eq 0 ]; then
|
if [ "$ret_val" -eq 0 ]; then
|
||||||
|
sed -i '/<open-size><\/open-size>/d' \
|
||||||
|
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/${z}/repodata/repomd.xml"
|
||||||
test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \
|
test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \
|
||||||
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/${z}/repodata/repomd.xml"
|
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/${z}/repodata/repomd.xml"
|
||||||
else
|
else
|
||||||
@ -37,6 +41,8 @@ for x in "${ARCHES[@]}"; do
|
|||||||
test -d "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/debug/tree"
|
test -d "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/debug/tree"
|
||||||
ret_val=$?
|
ret_val=$?
|
||||||
if [ "$ret_val" -eq 0 ]; then
|
if [ "$ret_val" -eq 0 ]; then
|
||||||
|
sed -i '/<open-size><\/open-size>/d' \
|
||||||
|
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/debug/tree/repodata/repomd.xml"
|
||||||
test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \
|
test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \
|
||||||
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/debug/tree/repodata/repomd.xml"
|
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/debug/tree/repodata/repomd.xml"
|
||||||
else
|
else
|
||||||
@ -50,6 +56,8 @@ for x in "${ARCHES[@]}"; do
|
|||||||
test -d "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os"
|
test -d "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os"
|
||||||
ret_val=$?
|
ret_val=$?
|
||||||
if [ "$ret_val" -eq 0 ]; then
|
if [ "$ret_val" -eq 0 ]; then
|
||||||
|
sed -i '/<open-size><\/open-size>/d' \
|
||||||
|
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os/repodata/repomd.xml"
|
||||||
test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \
|
test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \
|
||||||
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os/repodata/repomd.xml"
|
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os/repodata/repomd.xml"
|
||||||
else
|
else
|
||||||
@ -62,6 +70,8 @@ for x in "${ARCHES[@]}"; do
|
|||||||
test -d "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os"
|
test -d "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os"
|
||||||
ret_val=$?
|
ret_val=$?
|
||||||
if [ "$ret_val" -eq 0 ]; then
|
if [ "$ret_val" -eq 0 ]; then
|
||||||
|
sed -i '/<open-size><\/open-size>/d' \
|
||||||
|
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os/repodata/repomd.xml"
|
||||||
# This might not be necessary, but it does not hurt incase repomd is modified
|
# This might not be necessary, but it does not hurt incase repomd is modified
|
||||||
test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \
|
test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \
|
||||||
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os/repodata/repomd.xml"
|
"${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os/repodata/repomd.xml"
|
||||||
|
Loading…
Reference in New Issue
Block a user