mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Safer way to copy RPMs in no-net builds (Jim Meyering).
This commit is contained in:
@@ -238,10 +238,8 @@ Requires: jpackage-utils
|
||||
%build
|
||||
%if %{buildnonet}
|
||||
mkdir repo
|
||||
pushd repo
|
||||
cp $(find /var/cache/yum/build -name '*.rpm') .
|
||||
createrepo .
|
||||
popd
|
||||
find /var/cache/yum/build -type f -name '*.rpm' -print0 | xargs -0 cp -t repo
|
||||
createrepo repo
|
||||
%define extra --with-mirror=file://$(pwd)/repo --with-repo=fedora-12
|
||||
%else
|
||||
%define extra %nil
|
||||
|
||||
Reference in New Issue
Block a user