chiark / gitweb /
Use /usr/bin/mock to avoid issues when /usr/sbin/mock is run for non-root users
[cura.git] / package.sh
index 50330ac39cb815d4530136f570e0d70d7d4fed1b..98bed0485ce2f17f895b33baa5dc5b3eb823669b 100755 (executable)
@@ -439,7 +439,9 @@ function buildFedora() {
     fi
 
     mkdir -pv "$_dstRpmDir/$_mockRelease"
-    mock \
+    # Need to use /usr/bin/mock because depending on $PATH, if /usr/sbin/mock is
+    # run instead, it will give an error.
+    /usr/bin/mock \
       $_mockReleaseArg \
       --resultdir="$_dstRpmDir/$_mockRelease" \
       "$_srpmFile"