|
|
01f5281 |
From c9c5fcac945ae0489c667bfe5ebeeeb617eecf20 Mon Sep 17 00:00:00 2001
|
|
|
01f5281 |
From: Patrick Uiterwijk <patrick@puiterwijk.org>
|
|
|
01f5281 |
Date: Wed, 9 Jan 2019 21:39:33 +0100
|
|
|
01f5281 |
Subject: [PATCH] Make sure ${basearch} is also replaced with
|
|
|
01f5281 |
config['ostree_ref']
|
|
|
01f5281 |
|
|
|
01f5281 |
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
|
|
|
01f5281 |
---
|
|
|
01f5281 |
pungi/phases/ostree.py | 2 ++
|
|
|
01f5281 |
1 file changed, 2 insertions(+)
|
|
|
01f5281 |
|
|
|
01f5281 |
diff --git a/pungi/phases/ostree.py b/pungi/phases/ostree.py
|
|
|
01f5281 |
index 8bbe4434..a6190d75 100644
|
|
|
01f5281 |
--- a/pungi/phases/ostree.py
|
|
|
01f5281 |
+++ b/pungi/phases/ostree.py
|
|
|
01f5281 |
@@ -6,6 +6,7 @@ import os
|
|
|
01f5281 |
from kobo import shortcuts
|
|
|
01f5281 |
from kobo.threads import ThreadPool, WorkerThread
|
|
|
01f5281 |
|
|
|
01f5281 |
+from pungi.arch_utils import getBaseArch
|
|
|
01f5281 |
from .base import ConfigGuardedPhase
|
|
|
01f5281 |
from .. import util
|
|
|
01f5281 |
from ..ostree.utils import get_ref_from_treefile, get_commitid_from_commitid_file
|
|
|
01f5281 |
@@ -99,6 +100,7 @@ class OSTreeThread(WorkerThread):
|
|
|
01f5281 |
logger=self.pool._logger,
|
|
|
01f5281 |
)
|
|
|
01f5281 |
ref = config.get("ostree_ref") or original_ref
|
|
|
01f5281 |
+ ref = ref.replace("${basearch}", getBaseArch(arch))
|
|
|
01f5281 |
# 'pungi-make-ostree tree' writes commitid to commitid.log in
|
|
|
01f5281 |
# logdir, except if there was no new commit we will get None
|
|
|
01f5281 |
# instead. If the commit id could not be read, an exception will be
|
|
|
01f5281 |
--
|
|
|
01f5281 |
2.17.2
|
|
|
01f5281 |
|