summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2018-05-22 18:05:00 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2018-05-28 13:19:43 +0200
commiteae056623a6e82d5a1147ce5c0205fdd04fa8f92 (patch)
tree5bf0b07e73cc8787fb62ed803b38fd0e8f03f0d6 /scripts
parentc3d3a0d42416867d92c77e9b5e3e8879b64b3409 (diff)
downloadmeta-updater-eae056623a6e82d5a1147ce5c0205fdd04fa8f92.tar.gz
find_packages.py: Catch empty info and return early.
Master branch returns empty instead of throwing an exception.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/find_packages.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/find_packages.py b/scripts/find_packages.py
index 4b1680b..b297d7d 100755
--- a/scripts/find_packages.py
+++ b/scripts/find_packages.py
@@ -15,7 +15,11 @@ def print_deps(tinfoil, abcd_file, rn):
15 info = tinfoil.get_recipe_info(rn) 15 info = tinfoil.get_recipe_info(rn)
16 except: 16 except:
17 # fails on hostperl-runtime-native, virtual/libintl-native, grep-native, virtual/libiconv-native 17 # fails on hostperl-runtime-native, virtual/libintl-native, grep-native, virtual/libiconv-native
18 print('failing on: %s' % rn) 18 print('Failed to get recipe info for: %s' % rn)
19 return []
20 if not info:
21 # fails on the above and virtual/crypt-native
22 print('No recipe info found for: %s' % rn)
19 return [] 23 return []
20 append_files = tinfoil.get_file_appends(info.fn) 24 append_files = tinfoil.get_file_appends(info.fn)
21 appends = True 25 appends = True