summaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-28 11:15:59 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-28 11:15:59 +0100
commit9f5a1a333a05a4fad7fcc74181a4c3a8b0f8f75a (patch)
tree87e8206a3fe6a07bf2fcc54dadfd98787e86cb9b /migrations
parentfabcc63e5dd0ad098dab3508f8c6cc78123517d0 (diff)
downloaddefinitions-9f5a1a333a05a4fad7fcc74181a4c3a8b0f8f75a.tar.gz
migrations: Don't run 'indent' as a migration
Diffstat (limited to 'migrations')
-rwxr-xr-xmigrations/run-all3
1 files changed, 2 insertions, 1 deletions
diff --git a/migrations/run-all b/migrations/run-all
index 8df00074..5a817ee5 100755
--- a/migrations/run-all
+++ b/migrations/run-all
@@ -55,7 +55,8 @@ try:
for fname in sorted(os.listdir(migration_dir)):
migration_fpath = os.path.join(migration_dir, fname)
if is_executable(migration_fpath):
- if not os.path.samefile(migration_fpath, __file__):
+ if not os.path.samefile(migration_fpath, __file__) and \
+ fname != 'indent':
migrations_found += 1
sys.stdout.write(migration_fpath + ":\n")
subprocess.check_call(