From: Richard Jones Date: Thu, 30 Apr 2009 15:09:50 +0000 (+0100) Subject: Safer way to copy RPMs in no-net builds (Jim Meyering). X-Git-Tag: 1.0.16~13 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=5e62afd7ce5145eee1894fab6f0722119fee1d31 Safer way to copy RPMs in no-net builds (Jim Meyering). --- diff --git a/libguestfs.spec.in b/libguestfs.spec.in index 87dbcd2..fa55014 100644 --- a/libguestfs.spec.in +++ b/libguestfs.spec.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