aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pomu/cli.py')
-rw-r--r--pomu/cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pomu/cli.py b/pomu/cli.py
index 65dfa15..9a0b9bf 100644
--- a/pomu/cli.py
+++ b/pomu/cli.py
@@ -74,7 +74,7 @@ def status():
@needs_repo
def install(package):
"""Install a package"""
- res = dispatcher.install_package(package).expect()
+ res = dispatcher.install_package(pomu_active_repo(), package).expect()
print(res)
@main.command()
@@ -84,11 +84,11 @@ def install(package):
@needs_repo
def uninstall(uri, package):
"""Uninstall a package"""
+ repo = pomu_active_repo()
if uri:
- res = dispatcher.uninstall_package(package).expect()
+ res = dispatcher.uninstall_package(repo, package).expect()
print(res)
else:
- repo = pomu_active_repo()
res = repo.remove_package(package).expect()
return res