]> piware.de Git - bin.git/blobdiff - mockspec
build-debian-toolbox: Avoid deb.debian.org
[bin.git] / mockspec
index 1a32eee9f5c7e11a27754f5fa153345365023db0..6f32dbca09afe7773d17a49d06a208fc1baab45e 100755 (executable)
--- a/mockspec
+++ b/mockspec
@@ -2,7 +2,7 @@
 # start mock session with build deps from given .spec file
 OS="${OS:-default}"
 set -eu
-[ -d "$(mock -r $OS --print-root-path)" ] ||  mock --init
+[ -d "$(mock -r $OS --print-root-path)" ] ||  mock -r $OS --init
 specfile="$1"
 shift
 mock -r $OS -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; s/%{.*}//; p}' "$specfile") $@