From 815b7a4bf7b48eaa9691a39eadb6cf27c46d20f5 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 3 Jul 2008 21:30:46 +0000 Subject: [PATCH] needed when building *only* myplc-native --- myplc-native.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.0