diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-30 16:09:50 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-30 16:09:50 +0100 |
commit | 5e62afd7ce5145eee1894fab6f0722119fee1d31 (patch) | |
tree | 2d21778f8db8739bc79c99c9533d9d85837bfb0b | |
parent | 3c5bcce927dfa9213469d1f641408a0105685291 (diff) | |
download | libguestfs-5e62afd7ce5145eee1894fab6f0722119fee1d31.tar.gz libguestfs-5e62afd7ce5145eee1894fab6f0722119fee1d31.tar.xz libguestfs-5e62afd7ce5145eee1894fab6f0722119fee1d31.zip |
Safer way to copy RPMs in no-net builds (Jim Meyering).
-rw-r--r-- | libguestfs.spec.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libguestfs.spec.in b/libguestfs.spec.in index 87dbcd2c..fa550145 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 |