don't fail if hardlink iso fails because different build dirs
authorElan Ruusamäe <glen@delfi.ee>
Sat, 28 Mar 2015 20:51:07 +0000 (22:51 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 28 Mar 2015 20:51:07 +0000 (22:51 +0200)
VirtualBox.spec

index b2f57d57b31099abafa1542e2cdc251c651b2f6c..b25ab9d1342b21c77d3b5a4c6480bbdcf1afe987 100644 (file)
@@ -628,7 +628,8 @@ if cp -al COPYING $RPM_BUILD_ROOT/COPYING; then
 fi
 
 cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname}
-cp -a$l %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso
+cp -p$l %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso ||
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso
 
 %if %{without gui}
 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/icons
This page took 0.060044 seconds and 4 git commands to generate.