summaryrefslogtreecommitdiff
path: root/components/source-hooks
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-04-25 17:08:20 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2014-04-26 08:05:32 +0200
commitc3bd85f0de1a14544713fa442bea6e68327877cf (patch)
treefc40d4fbbae109b7b6d55fe074ffead361272a77 /components/source-hooks
parent1867dc1e5296852f55132e0799b037dc2fc72d1a (diff)
downloadvyos-live-build-c3bd85f0de1a14544713fa442bea6e68327877cf.tar.gz
vyos-live-build-c3bd85f0de1a14544713fa442bea6e68327877cf.zip
Run hooks in sorted order (Closes: #745839).
glob.glob() returns files in filesystem order, which is unpredictable on many modern filesystems.
Diffstat (limited to 'components/source-hooks')
-rwxr-xr-xcomponents/source-hooks2
1 files changed, 1 insertions, 1 deletions
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')