This commit is contained in:
2023-08-23 14:30:08 +02:00
parent 5b525bbe7b
commit 960d7c0f88
2 changed files with 3 additions and 3 deletions

View File

@ -159,10 +159,10 @@ def print_pmodules_differences(
deleted_module_list_no_state = [] deleted_module_list_no_state = []
for state in Pmodules_states: for state in Pmodules_states:
new_module_list_no_state = [ new_module_list_no_state = [
diff.replace(state, ".*") for diff in new_module_list diff.replace(state, " .*") for diff in new_module_list
] ]
deleted_module_list_no_state = [ deleted_module_list_no_state = [
diff.replace(state, ".*") for diff in deleted_module_list diff.replace(state, " .*") for diff in deleted_module_list
] ]
# Check if the state of the module is the only thing that changed # Check if the state of the module is the only thing that changed

View File

@ -43,7 +43,7 @@ def main():
# Global variables # Global variables
Pmodules_db_path = "/opt/psi/var/cache/pmodules_db/" Pmodules_db_path = "/opt/psi/var/cache/pmodules_db/"
Pmodules_states = ["deprecated", "stable", "unstable"] Pmodules_states = [" deprecated", " stable", " unstable"]
# Main search to analyse # Main search to analyse
module_cmd = ( module_cmd = (