diff options
author | Quanah Gibson-Mount <quanah@symas.com> | 2021-05-03 12:07:30 -0400 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2021-05-04 09:31:33 +0200 |
commit | d5e2096198349f873739d18f9101d5a2005e9577 (patch) | |
tree | cce60a872747fa4082636f9b72f7ca4dd4f6c155 | |
parent | f48e18ce39fbefde6e950fd9b62e90203a69413c (diff) |
gbp-builder-mock: Update to work with current mock releases
-rwxr-xr-x | bin/gbp-builder-mock | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/gbp-builder-mock b/bin/gbp-builder-mock index a498823c..8509a583 100755 --- a/bin/gbp-builder-mock +++ b/bin/gbp-builder-mock @@ -67,11 +67,11 @@ gbp_builder_mock() { spec="$export_dir/SPECS/$SPEC" sources="$export_dir/SOURCES" srpms="$export_dir/SRPMS" - pat="${GBP_BUILDER_MOCK_RESULTS_PAT-results/%(dist)s/%(target_arch)s/}" + pat="${GBP_BUILDER_MOCK_RESULTS_PAT-results/{{dist\}\}/{{target_arch\}\}/}" local resultdir="$export_dir/$pat" - local mock="mock -r $root --resultdir=$srpms --spec=$spec --sources=$sources" + local mock="mock -r $root --sources=$sources" - $mock --buildsrpm + $mock --resultdir=$srpms --spec=$spec --buildsrpm # Assuming that nothing was built in this directory since the previous command: local srpm=`ls -t $PWD/SRPMS/*.src.rpm 2>/dev/null| head -n1` if [ -z $srpm ]; then |