From 4326182b027e815bd184d40b9583f71c4eff0aa5 Mon Sep 17 00:00:00 2001 From: Andrew Tonner Date: Sun, 22 Jan 2017 15:08:33 -0800 Subject: [PATCH] python build script: fix for fresh install --- SheepShaver/src/Windows/build_on_msys.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SheepShaver/src/Windows/build_on_msys.py b/SheepShaver/src/Windows/build_on_msys.py index fa0973f5..55f62054 100644 --- a/SheepShaver/src/Windows/build_on_msys.py +++ b/SheepShaver/src/Windows/build_on_msys.py @@ -354,6 +354,8 @@ def get_installed_packages(quiet=False): # first, get the mapping from tarnames to package names for all available packages package_list_filename = os.path.join(data_path, "package-list.xml") + if not os.path.exists(package_list_filename): + return [] catalogues = xml_read_helper(package_list_filename, "package-list", "catalogue") packages_by_tarname = {}