[releng/abderrahim/small-fixes: 2/3] convert-to-tarballs: check whether submodules exist before trying to delete them
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [releng/abderrahim/small-fixes: 2/3] convert-to-tarballs: check whether submodules exist before trying to delete them
- Date: Mon, 8 Oct 2018 16:33:25 +0000 (UTC)
commit b846a47d15d372323bcdd7b1489c855c85870332
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Thu Oct 4 13:29:42 2018 +0100
convert-to-tarballs: check whether submodules exist before trying to delete them
makes the script work with latest ruamel.yaml
tools/smoketesting/convert-to-tarballs.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/tools/smoketesting/convert-to-tarballs.py b/tools/smoketesting/convert-to-tarballs.py
index b20ed7d..45a4c48 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -660,7 +660,8 @@ class ConvertToTarballs:
element['sources'][0]['kind'] = 'tar'
element['sources'][0]['url'] = location
element['sources'][0]['ref'] = sha
- del element['sources'][0]['submodules']
+ if 'submodules' in element['sources'][0]:
+ del element['sources'][0]['submodules']
del element['sources'][0]['track']
# Dump it now
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]