Skip to content
Snippets Groups Projects
Commit 3e14de0d authored by Alex Iribarren's avatar Alex Iribarren
Browse files

Merge branch 'printfind' into 'master'

Print the xml and yaml files that are being deleted

See merge request !224
parents 28ba34ef 4794c5d0
No related branches found
No related tags found
1 merge request!224Print the xml and yaml files that are being deleted
Pipeline #4802190 passed
......@@ -162,13 +162,13 @@ EOF
# Keep the current xml.gz file and remove the older one
UPDXMLFILE=$(sed '/updateinfo.xml.gz/!d; s/.*repodata\/\(.*\)".*/\1/' ${REPOPATH}/repodata/repomd.xml)
if [ -f "$UPDXMLFILE" ]; then
/usr/bin/find ${REPOPATH} -name '*updateinfo.xml*' -not -name $UPDXMLFILE -delete
/usr/bin/find ${REPOPATH} -name '*updateinfo.xml*' -not -name $UPDXMLFILE -printf "removed '%f'\n" -delete
fi
# Keep the current yaml.gz file and remove the older one
MODULEFILE=$(sed '/yaml.gz/!d; s/.*repodata\/\(.*\)".*/\1/' ${REPOPATH}/repodata/repomd.xml)
if [ -f "$MODULEFILE" ]; then
/usr/bin/find ${REPOPATH} -name '*module*.yaml*' -not -name $MODULEFILE -delete
/usr/bin/find ${REPOPATH} -name '*module*.yaml*' -not -name $MODULEFILE -printf "removed '%f'\n" -delete
fi
fi # end of if [[ $RUN_CREATEREPO -eq 1 ]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment