From c3bd85f0de1a14544713fa442bea6e68327877cf Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 25 Apr 2014 17:08:20 +0100 Subject: Run hooks in sorted order (Closes: #745839). glob.glob() returns files in filesystem order, which is unpredictable on many modern filesystems. --- components/binary-hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/binary-hooks') diff --git a/components/binary-hooks b/components/binary-hooks index 3e9cf07ca..d7bb4d7a7 100755 --- a/components/binary-hooks +++ b/components/binary-hooks @@ -80,7 +80,7 @@ def main(): hooks = glob.glob('config/hooks/*.hook') + glob.glob('config/hooks/*.hook.binary') - for hook in hooks: + for hook in sorted(hooks): if verbose: print('I: Copying config/hooks/*.hook.binary to binary/live-build') -- cgit v1.2.3