Fix yum cache copy so it works if there are multiple repos (RHBZ#980502).

This commit is contained in:
Richard W.M. Jones 2013-07-03 15:55:34 +01:00
parent 25bbb93250
commit 18e6600858

View File

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