From 2b4c26bad8eef91bc71bf7c006017eb34c81348b Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 13 Jun 2024 13:05:47 +0200 Subject: [PATCH] Better check --- scripts/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build.py b/scripts/build.py index 0d493f8..dba5dcd 100644 --- a/scripts/build.py +++ b/scripts/build.py @@ -7,6 +7,8 @@ if len(desc_files) != 1: raise ValueError('cannot have multiple descriptors changed or packages with spaces in their names') desc_file = desc_files[0] +if len(desc_file) == 0: + raise ValueError('description file not found (ALL_CHANGED_FILES was set but empty)') with open(desc_file, 'r') as stream: desc = yaml.safe_load(stream)