aboutsummaryrefslogtreecommitdiff
path: root/src/rm.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/rm.py')
-rw-r--r--src/rm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rm.py b/src/rm.py
index 9f6956e..e62db7a 100644
--- a/src/rm.py
+++ b/src/rm.py
@@ -1,7 +1,7 @@
from common import *
def rm_pkg(pkg) -> None:
- cmd = f"{root} rm -fr {os.path.join(FULL_REPOS_LOCATION, pkg)}"
+ cmd = f"{ROOT} rm -fr {os.path.join(FULL_REPOS_LOCATION, pkg)}"
print(cmd)
os.system(cmd)
@@ -21,7 +21,7 @@ def rm(pkg, repos) -> None:
elif len(found) == 1:
use = found[0]
else:
- names = [f"{x["path"]}:{x["repo"]}" for x in found]
+ names = [f"{x['path']}:{x['repo']}" for x in found]
selected = questionary.select(f"{pkg} is ambiguous, select a more specific package", names).ask().split(":")
use = [x for x in found if x["path"] == selected[0] and x["repo"] == selected[1]][0]
print(use)