From: Thierry Parmentelat Date: Thu, 3 Jul 2008 21:30:46 +0000 (+0000) Subject: needed when building *only* myplc-native X-Git-Tag: MyPLC-4.2-16~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=815b7a4bf7b48eaa9691a39eadb6cf27c46d20f5;p=myplc.git needed when building *only* myplc-native --- diff --git a/myplc-native.spec b/myplc-native.spec index babf0bb..15da9b1 100644 --- a/myplc-native.spec +++ b/myplc-native.spec @@ -107,7 +107,7 @@ if [ -n "$SUDO_USER" ] ; then # /usr/bin/sudo get created with non-readable permissions. find . -not -perm +0600 -exec chmod u+rw {} \; # Allow user to delete the built RPM(s) - chown -h -R $SUDO_USER %{_rpmdir}/%{_arch} + [ -d %{_rpmdir}/%{_arch} ] && chown -h -R $SUDO_USER %{_rpmdir}/%{_arch} fi %pre