[haiku-commits] haiku: hrev53127 - src/tools

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 14 May 2019 22:06:39 -0400 (EDT)

hrev53127 adds 1 changeset to branch 'master'
old head: 54e53dabfc4acd2530555c717069f894fc2e6998
new head: 0f916d6641867effda06db89844fd01fb803c821
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=0f916d664186+%5E54e53dabfc4a

----------------------------------------------------------------------------

0f916d664186: tools/hardlink_packages: Check that the package_repo command 
exists.

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53127
Commit:      0f916d6641867effda06db89844fd01fb803c821
URL:         https://git.haiku-os.org/haiku/commit/?id=0f916d664186
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Wed May 15 02:04:56 2019 UTC

----------------------------------------------------------------------------

1 file changed, 5 insertions(+), 1 deletion(-)
src/tools/hardlink_packages.py | 6 +++++-

----------------------------------------------------------------------------

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 <waddlesplash>
+# Copyright 2017-2019 Augustin Cavalier <waddlesplash>
 # 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]


Other related posts:

  • » [haiku-commits] haiku: hrev53127 - src/tools - waddlesplash