From c838f500ed0eb0e835e00bdf23c5b7d6341e00e8 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 28 Oct 2018 13:01:15 +0100 Subject: [PATCH] mockspec: Fix mock --init for non-default $OS --- mockspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") $@ -- 2.39.5