modify spec file

This commit is contained in:
lizhenhua 2020-05-26 17:41:38 +08:00
parent 89e3bb49e8
commit bb13c6ad14

View File

@ -202,15 +202,13 @@ ip route list ||:
if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
extra= extra=
else else
if [ ! -d "/.pkgs" ];then install -d cachedir repo
extra= if [ -d "/.pkgs" ];then
else
install -d cachedir repo
find /.pkgs/ -type f -name '*.rpm' -print0 | xargs -0 -n 1 cp -t repo find /.pkgs/ -type f -name '*.rpm' -print0 | xargs -0 -n 1 cp -t repo
createrepo repo
sed -e "s|@PWD@|$(pwd)|" %{SOURCE2} > yum.conf
extra=--with-supermin-packager-config=$(pwd)/yum.conf
fi fi
createrepo repo
sed -e "s|@PWD@|$(pwd)|" %{SOURCE2} > yum.conf
extra=--with-supermin-packager-config=$(pwd)/yum.conf
fi fi
%global localconfigure \ %global localconfigure \