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/source-hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/source-hooks') diff --git a/components/source-hooks b/components/source-hooks index 32be58bed..672b53f3e 100755 --- a/components/source-hooks +++ b/components/source-hooks @@ -80,7 +80,7 @@ def main(): hooks = glob.glob('config/hooks/*.hook') + glob.glob('config/hooks/*.hook.source') - for hook in hooks: + for hook in sorted(hooks): if verbose: print('I: Copying config/hooks/*.hook.source to source/live-build') -- cgit v1.2.3