From 0f916d6641867effda06db89844fd01fb803c821 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 14 May 2019 22:04:56 -0400 Subject: [PATCH] tools/hardlink_packages: Check that the package_repo command exists. --- src/tools/hardlink_packages.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tools/hardlink_packages.py b/src/tools/hardlink_packages.py index 407154814c..2b8a84023b 100755 --- a/src/tools/hardlink_packages.py +++ b/src/tools/hardlink_packages.py @@ -4,7 +4,7 @@ # Hardlink only packages used in the build from one directory to another, # and updates the RemotePackageRepository file at the same time. # -# Copyright 2017 Augustin Cavalier +# Copyright 2017-2019 Augustin Cavalier # Distributed under the terms of the MIT License. import sys, os, re, hashlib @@ -17,6 +17,10 @@ if len(sys.argv) < 5: + " and a repo.info.template file (using $ARCH$)") sys.exit(1) +if os.system('package_repo') != 1: + print("package_repo command does not seem to exist.") + sys.exit(1) + args_arch = sys.argv[1] args_jamf = sys.argv[2] args_src = sys.argv[3]