mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
Don't load Debian backup files as module configuration
When modules were removed, Debian packaging also had to remove them to avoid errors. When Debian guidelines are following and correspoding deb helper is used, it creates .dpkg-* files in the module configuration directory. Plinth tries to load these which causes problems. We should consider loading files with a known extension in future.
This commit is contained in:
parent
3fcbb36a21
commit
da9faa5e02
@ -146,7 +146,7 @@ def get_modules_to_load():
|
||||
# Omit hidden files
|
||||
file_names = [file
|
||||
for file in os.listdir(module_directory)
|
||||
if not file.startswith('.')]
|
||||
if not file.startswith('.') and '.dpkg' not in file]
|
||||
|
||||
for file_name in file_names:
|
||||
full_file_name = os.path.join(module_directory, file_name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user