Find cached RPMs in /var/cache/dnf as well as /var/cache/yum.

This commit is contained in:
Richard W.M. Jones 2016-01-07 10:07:54 +00:00
parent 021f6c037a
commit f85ac5ae56
1 changed files with 2 additions and 1 deletions

View File

@ -815,7 +815,8 @@ if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
else
mkdir repo
# -n 1 because of RHBZ#980502.
find /var/cache/yum -type f -name '*.rpm' -print0 | xargs -0 -n 1 cp -t repo
find /var/cache/{dnf,yum} -type f -name '*.rpm' -print0 | \
xargs -0 -n 1 cp -t repo
createrepo repo
cat > yum.conf <<EOF
[main]