Backup #16

Merged
cswimr merged 41 commits from backup into main 2024-01-31 15:58:08 -05:00
Showing only changes of commit 9b930fc05b - Show all commits

View file

@ -187,14 +187,14 @@ class Backup(commands.Cog):
if repository.available_libraries: if repository.available_libraries:
installed_libs, failed_libs = await repository.install_libraries(target_dir=downloader.SHAREDLIB_PATH, req_target_dir=downloader.LIB_PATH) installed_libs, failed_libs = await repository.install_libraries(target_dir=downloader.SHAREDLIB_PATH, req_target_dir=downloader.LIB_PATH)
else: else:
installed_libs = ((),) installed_libs = None
failed_libs = () failed_libs = None
if cog_pinned: if cog_pinned:
for cog in installed_cogs: for cog in installed_cogs:
cog.pinned = True cog.pinned = True
await downloader._save_to_installed(installed_cogs + installed_libs) await downloader._save_to_installed(installed_cogs + installed_libs if installed_libs else installed_cogs)
if failed_cogs: if failed_cogs:
install_e.append(f"Failed to install {failed_cogs}") install_e.append(f"Failed to install {failed_cogs}")
if failed_libs: if failed_libs: