[appimage] refactoring: removing '/' from INSTALLATION_PATH constant

This commit is contained in:
Vinicius Moreira
2021-11-29 10:45:10 -03:00
parent ab302d460b
commit 9f4e08e29c
4 changed files with 5 additions and 5 deletions

View File

@@ -254,7 +254,7 @@ class AppImageManager(SoftwareManager):
res = SearchResult(installed_apps, [], 0)
if os.path.exists(INSTALLATION_PATH):
installed = run_cmd('ls {}*/data.json'.format(INSTALLATION_PATH), print_error=False)
installed = run_cmd(f'ls {INSTALLATION_PATH}/*/data.json', print_error=False)
if installed:
names = set()
@@ -553,7 +553,7 @@ class AppImageManager(SoftwareManager):
def _install(self, pkg: AppImage, watcher: ProcessWatcher, pre_downloaded_file: Optional[Tuple[str, str]] = None):
handler = ProcessHandler(watcher)
out_dir = INSTALLATION_PATH + pkg.get_clean_name()
out_dir = f'{INSTALLATION_PATH}/{pkg.get_clean_name()}'
counter = 0
while True:
if os.path.exists(out_dir):