We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a775148 commit 507869aCopy full SHA for 507869a
catalog_reader/scripts/apps_hashes.py
@@ -88,7 +88,7 @@ def update_catalog_hashes(
88
89
# Remove all old library versions
90
for old_lib_dir in app_lib_dir.iterdir():
91
- if old_lib_dir.is_dir():
+ if old_lib_dir.is_dir() and old_lib_dir.name.startswith("base_"):
92
shutil.rmtree(old_lib_dir.as_posix(), ignore_errors=True)
93
94
app_base_lib_dir = app_lib_dir / base_lib_name
@@ -110,7 +110,8 @@ def update_catalog_hashes(
110
print(message)
111
112
if is_single_app and not app_found:
113
- print(f'[\033[91mERROR\x1B[0m]\tApp {app_name!r} not found in train {train_name!r}')
+ verrors.add('app', f'App {app_name!r} not found in train {train_name!r}')
114
+ verrors.check()
115
116
117
def main():
0 commit comments