summaryrefslogtreecommitdiffstats
path: root/gamechestcli/gamechest/cliactions/install.py
diff options
context:
space:
mode:
Diffstat (limited to 'gamechestcli/gamechest/cliactions/install.py')
-rw-r--r--gamechestcli/gamechest/cliactions/install.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gamechestcli/gamechest/cliactions/install.py b/gamechestcli/gamechest/cliactions/install.py
index ed2437f..8584d35 100644
--- a/gamechestcli/gamechest/cliactions/install.py
+++ b/gamechestcli/gamechest/cliactions/install.py
@@ -8,7 +8,8 @@ from ..statusdb import StatusDB
def install_game(status_db, game_info):
remote_basedir = paths.get_remote_basedir()
source = f'{remote_basedir}/{game_info["package_name"]}'
- dest = paths.get_games_install_basedir()
+ dest = paths.get_games_install_basedir() / game_info['id']
+ dest.mkdir(parents=True, exist_ok=True)
title = 'Installing game...'
task = functools.partial(Install, source, dest)
processor.process_task(title, task)
@@ -16,7 +17,7 @@ def install_game(status_db, game_info):
def install(game_id):
- game_db = gamdb.GameDB()
+ game_db = gamedb.GameDB()
game_info = game_db.get_game_info(game_id)
status_db = StatusDB()
if status_db.is_installed(game_info):