Fix gbp-builder-mock to honor configured options for mock
authorQuanah Gibson-Mount <quanah@symas.com>
Fri, 14 May 2021 22:33:42 +0000 (18:33 -0400)
committerGuido Günther <agx@sigxcpu.org>
Tue, 18 May 2021 15:18:21 +0000 (17:18 +0200)
bin/gbp-builder-mock

index 8509a58392368c3fe474af0c1e6dc5e1c2f39150..110ee224903e7aa074ef7a627480917b210e95f0 100755 (executable)
@@ -69,7 +69,7 @@ gbp_builder_mock() {
        srpms="$export_dir/SRPMS"
        pat="${GBP_BUILDER_MOCK_RESULTS_PAT-results/{{dist\}\}/{{target_arch\}\}/}"
        local resultdir="$export_dir/$pat"
-       local mock="mock -r $root --sources=$sources"
+       local mock="mock -r $root --sources=$sources ${GBP_BUILDER_MOCK_OPTIONS}"
 
        $mock --resultdir=$srpms --spec=$spec --buildsrpm
        # Assuming that nothing was built in this directory since the previous command: