chiark / gitweb /
Use /usr/bin/mock to avoid issues when /usr/sbin/mock is run for non-root users
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Fri, 22 Jan 2016 21:12:12 +0000 (16:12 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Fri, 22 Jan 2016 22:06:50 +0000 (17:06 -0500)
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"