cmdlib.sh: be more strict about yumrepos to copy
Use `-type f` to only copy files, and `-maxdepth 1` so we don't recurse
into random e.g. test fixtures, etc...
@@ -383,9 +383,9 @@ EOF
# Because right now rpm-ostree doesn't look for .repo files in
# each included dir.
# https://github.com/projectatomic/rpm-ostree/issues/1628
- find "${configdir}" -name '*.repo' -exec cp -t "${tmp_overridesdir}" {} +
+ find "${configdir}/" -name '*.repo' -maxdepth 1 -type f -exec cp -t "${tmp_overridesdir}" {} +
if [ -d "${workdir}/src/yumrepos" ]; then
- find "${workdir}/src/yumrepos" -name '*.repo' -exec cp -t "${tmp_overridesdir}" {} +
+ find "${workdir}/src/yumrepos/" -maxdepth 1 -type f -name '*.repo' -exec cp -t "${tmp_overridesdir}" {} +
fi
if ! ls "${tmp_overridesdir}"/*.repo; then
echo "ERROR: no yum repo files were found"
