Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
toolkit
Commits
f00104f6
Verified
Commit
f00104f6
authored
Aug 05, 2021
by
Louis Abel
📺
Browse files
turn on sed
parent
7161e156
Pipeline
#73
passed with stage
in 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sync/sign-repos-only.sh
View file @
f00104f6
...
...
@@ -8,6 +8,8 @@ for y in "${ALL_REPOS[@]}"; do
test
-d
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/source/tree"
ret_val
=
$?
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
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/source/tree/repodata/repomd.xml"
else
...
...
@@ -25,6 +27,8 @@ for x in "${ARCHES[@]}"; do
test
-d
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/
${
z
}
"
ret_val
=
$?
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
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/
${
z
}
/repodata/repomd.xml"
else
...
...
@@ -37,6 +41,8 @@ for x in "${ARCHES[@]}"; do
test
-d
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/debug/tree"
ret_val
=
$?
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
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/debug/tree/repodata/repomd.xml"
else
...
...
@@ -50,6 +56,8 @@ for x in "${ARCHES[@]}"; do
test
-d
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os"
ret_val
=
$?
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
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os/repodata/repomd.xml"
else
...
...
@@ -62,6 +70,8 @@ for x in "${ARCHES[@]}"; do
test
-d
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os"
ret_val
=
$?
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
test
-f
/root/bin/sign-repo.sh
&&
/root/bin/sign-repo.sh
\
"
${
STAGING_ROOT
}
/
${
RELEASE_DIR
}
/
${
y
}
/
${
x
}
/os/repodata/repomd.xml"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment