[releng/abderrahim/aliases] convert-to-tarballs.py: support aliases in different files (as is in current master)
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [releng/abderrahim/aliases] convert-to-tarballs.py: support aliases in different files (as is in current master)
- Date: Tue, 4 Jan 2022 16:32:03 +0000 (UTC)
commit ec238fa0c2696bd16b6a250795b391e3716e6bee
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Tue Jan 4 17:31:49 2022 +0100
convert-to-tarballs.py: support aliases in different files (as is in current master)
tools/smoketesting/convert-to-tarballs.py | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/tools/smoketesting/convert-to-tarballs.py b/tools/smoketesting/convert-to-tarballs.py
index 66bf109..d681bbc 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -101,9 +101,15 @@ class ConvertToTarballs:
self.errors = []
self.warnings = []
- with open(os.path.join(directory, 'project.conf')) as f:
- projectconf = yaml.safe_load(f)
- self.aliases = projectconf['aliases']
+ if os.path.exists(os.path.join(directory, 'include/aliases.yml')):
+ fname = 'include/aliases.yml'
+ else:
+ fname = 'project.conf'
+
+ with open(os.path.join(directory, fname)) as f:
+ conf = yaml.safe_load(f)
+
+ self.aliases = conf['aliases']
def _get_module_kind(self, element):
if 'sources' not in element:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]