[releng: 3/7] convert-to-tarballs: remove special casing for librsvg



commit dbaa1b8d990f3f7fed4e9342af4e9db3682a2568
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Thu Feb 6 14:45:49 2020 +0100

    convert-to-tarballs: remove special casing for librsvg
    
    Just remove the cargo sources which shouldn't be needed for tarballs

 tools/smoketesting/convert-to-tarballs.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/tools/smoketesting/convert-to-tarballs.py b/tools/smoketesting/convert-to-tarballs.py
index a3cd3b7..5f3f5e9 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -672,11 +672,9 @@ class ConvertToTarballs:
         if 'track' in element['sources'][0]:
             del element['sources'][0]['track']
 
-        # special case rsvg for now, this will hopefully go away
-        # once we switch to bst 1.4
-        if fullpath.endswith('librsvg.bst'):
-            # keep only the tarball
-            element['sources'] = [element['sources'][0]]
+        # cargo sources shouldn't be needed in tarballs as tarballs should
+        # vendor their dependencies
+        element['sources'] = [source for source in element['sources'] if source['kind'] != 'cargo']
 
         # Dump it now
         with open(fullpath, 'w') as f:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]