X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=mockspec;h=6f32dbca09afe7773d17a49d06a208fc1baab45e;hp=1a32eee9f5c7e11a27754f5fa153345365023db0;hb=c838f500ed0eb0e835e00bdf23c5b7d6341e00e8;hpb=4e0fe5d8a00af60efa1a2ff8e7125245c8d54608 diff --git a/mockspec b/mockspec index 1a32eee..6f32dbc 100755 --- 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") $@