modify spec file
This commit is contained in:
parent
89e3bb49e8
commit
bb13c6ad14
@ -201,17 +201,15 @@ ip addr list ||:
|
|||||||
ip route list ||:
|
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
|
|
||||||
if [ ! -d "/.pkgs" ];then
|
|
||||||
extra=
|
|
||||||
else
|
else
|
||||||
install -d cachedir repo
|
install -d cachedir repo
|
||||||
|
if [ -d "/.pkgs" ];then
|
||||||
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
|
||||||
|
fi
|
||||||
createrepo repo
|
createrepo repo
|
||||||
sed -e "s|@PWD@|$(pwd)|" %{SOURCE2} > yum.conf
|
sed -e "s|@PWD@|$(pwd)|" %{SOURCE2} > yum.conf
|
||||||
extra=--with-supermin-packager-config=$(pwd)/yum.conf
|
extra=--with-supermin-packager-config=$(pwd)/yum.conf
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
%global localconfigure \
|
%global localconfigure \
|
||||||
%{configure} \\\
|
%{configure} \\\
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user