mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 11:19:22 -05:00
Merge pull request #4214 from matrix-org/rav/ignore_pycache
Ignore __pycache__ directories in schema delta dir
This commit is contained in:
commit
e8690dec2e
1
changelog.d/4214.misc
Normal file
1
changelog.d/4214.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Ignore __pycache__ directories in the database schema folder
|
@ -257,7 +257,7 @@ def _upgrade_existing_database(cur, current_version, applied_delta_files,
|
|||||||
module.run_create(cur, database_engine)
|
module.run_create(cur, database_engine)
|
||||||
if not is_empty:
|
if not is_empty:
|
||||||
module.run_upgrade(cur, database_engine, config=config)
|
module.run_upgrade(cur, database_engine, config=config)
|
||||||
elif ext == ".pyc":
|
elif ext == ".pyc" or file_name == "__pycache__":
|
||||||
# Sometimes .pyc files turn up anyway even though we've
|
# Sometimes .pyc files turn up anyway even though we've
|
||||||
# disabled their generation; e.g. from distribution package
|
# disabled their generation; e.g. from distribution package
|
||||||
# installers. Silently skip it
|
# installers. Silently skip it
|
||||||
|
Loading…
Reference in New Issue
Block a user