From c63bfc22e2a36fe235438ec6c1b1204211e980ab Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Tue, 23 Jun 2020 15:21:29 +0300 Subject: [PATCH] build-package.sh: skip work-in-process metadata when downloading dependency debs (-i/-I) --- scripts/get_hash_from_file.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/get_hash_from_file.py b/scripts/get_hash_from_file.py index 978c91bf1..420db8ffc 100755 --- a/scripts/get_hash_from_file.py +++ b/scripts/get_hash_from_file.py @@ -29,7 +29,10 @@ def get_Packages_hash_from_Release(Release_file, arch, component, hash="SHA256") break for j in range(i, len(hash_list)): if string_to_find in hash_list[j].strip(' '): - print(hash_list[j].strip(' ').split(' ')[0]) + hash_entry = list(filter(lambda s: s != '', hash_list[j].strip('').split(' '))) + if hash_entry[2].startswith(".work_"): + continue + print(hash_entry[0]) break if __name__ == '__main__':