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

Merge branch 'find' into 'master'

Fix find commands

See merge request !22
parents f8c38c59 2664e03d
No related branches found
No related tags found
1 merge request!22Fix find commands
Pipeline #2514779 passed
......@@ -4,7 +4,6 @@ source /root/common.sh
REPO_REGEX="$1"
TAG_REGEX="$2"
#REGEX="c${RELEASE}-.*"
REGEN_JOB="prod_koji-regenrepo"
PAYLOAD="{"
......
......@@ -22,7 +22,7 @@ for ARCH in $CENTOS_ARCHES; do
for REPO in $ALL_REPOS; do
CLEANREPO="${REPO/\//-}"
if [[ $CHANNEL == "daily" ]]; then
SEARCH="-name .diff -path */$REPO/$ARCH/*"
SEARCH="-path */$REPO/$ARCH/* -name .diff"
elif [[ $CHANNEL == "testing" ]]; then
SEARCH="-name .diff:*-$LN_TESTING:$CLEANREPO:$ARCH"
else
......
......@@ -6,7 +6,7 @@ echo "Checking for dangerous packages..."
TMPDIR=`mktemp -d`
find "$DEST" -name .diff -not -path '*/CERN/*' -not -path '*/Source/*' -not -path '*/Debug/*' -exec cat {} \; | sort -u > $TMPDIR/alldiffs
find "$DEST" -not -path '*/CERN/*' -not -path '*/Source/*' -not -path '*/Debug/*' -name .diff -exec cat {} \; | sort -u > $TMPDIR/alldiffs
while IFS= read -r LINE; do
while IFS= read -r RPM; do
......@@ -20,7 +20,7 @@ while IFS= read -r LINE; do
for ARCH in $ARCHES; do
# Assemble all the repos into a list of --repofrompath parameters for repoquery
repos="`find "$DEST" -path "*/${ARCH}/*" -name 'repodata' -not -path '*/Source/*' -not -path '*/Debug/*' | sed 's#/repodata##' | awk '{printf " --repofrompath=r" NR "," $0}'`"
repos="`find "$DEST" -path "*/${ARCH}/*" -not -path '*/Source/*' -not -path '*/Debug/*' -name 'repodata' | sed 's#/repodata##' | awk '{printf " --repofrompath=r" NR "," $0}'`"
latest_all=`repoquery --disablerepo='*' $repos --latest-limit 1 $N 2>/dev/null`
latest_cern=`repoquery --disablerepo='*' --repofrompath=r17,${DEST}/CERN/${ARCH}/ --latest-limit 1 $N 2>/dev/null`
......
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