No /var/cache/yum in build environment and add test incase no cached rpms.
This commit is contained in:
parent
63e87d31f9
commit
b19aae0399
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: libguestfs
|
Name: libguestfs
|
||||||
Version: 1.40.2
|
Version: 1.40.2
|
||||||
Release: 13
|
Release: 14
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: A set of tools for accessing and modifying virtual machine (VM) disk images
|
Summary: A set of tools for accessing and modifying virtual machine (VM) disk images
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
@ -198,7 +198,10 @@ if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
|
|||||||
extra=
|
extra=
|
||||||
else
|
else
|
||||||
mkdir cachedir repo
|
mkdir cachedir repo
|
||||||
find /var/cache/{dnf,yum} -type f -name '*.rpm' -print0 | xargs -0 -n 1 cp -t repo
|
findres=`find /var/cache/dnf -type f -name '*.rpm' -print0`
|
||||||
|
if [ ! -z "$findres"]; then
|
||||||
|
echo $find_res | 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
|
||||||
@ -364,6 +367,9 @@ install -m 0644 utils/boot-benchmark/boot-benchmark.1 $RPM_BUILD_ROOT%{_mandir}/
|
|||||||
%exclude %{_mandir}/man1/virt-tar.1*
|
%exclude %{_mandir}/man1/virt-tar.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue 20 Jul 2021 sunguoshuai <sunguoshuai@huawei.com> - 1:1.40.2-14
|
||||||
|
- No /var/cache/yum in build environment and add test incase no cached rpms.
|
||||||
|
|
||||||
* Mon Mar 01 2021 maminjie <maminjie1@huawei.com> - 1:1.40.2-13
|
* Mon Mar 01 2021 maminjie <maminjie1@huawei.com> - 1:1.40.2-13
|
||||||
- Fix php 8.0.0 warning about missing arginfo
|
- Fix php 8.0.0 warning about missing arginfo
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user