diff --git a/pmodules_tools/db_diff/check.py b/pmodules_tools/db_diff/check.py index cc98c639..1841ff2a 100644 --- a/pmodules_tools/db_diff/check.py +++ b/pmodules_tools/db_diff/check.py @@ -159,10 +159,10 @@ def print_pmodules_differences( deleted_module_list_no_state = [] for state in Pmodules_states: 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 = [ - 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 diff --git a/pmodules_tools/pmodules_tools.py b/pmodules_tools/pmodules_tools.py index 1990204f..c93f3901 100644 --- a/pmodules_tools/pmodules_tools.py +++ b/pmodules_tools/pmodules_tools.py @@ -43,7 +43,7 @@ def main(): # Global variables Pmodules_db_path = "/opt/psi/var/cache/pmodules_db/" - Pmodules_states = ["deprecated", "stable", "unstable"] + Pmodules_states = [" deprecated", " stable", " unstable"] # Main search to analyse module_cmd = (