Fix yum cache copy so it works if there are multiple repos (RHBZ#980502).
This commit is contained in:
parent
25bbb93250
commit
18e6600858
@ -548,7 +548,8 @@ if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
|
||||
extra=
|
||||
else
|
||||
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
|
||||
cat > yum.conf <<EOF
|
||||
[main]
|
||||
|
Loading…
Reference in New Issue
Block a user