summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/backend/portage_helper.py2
-rw-r--r--portato/gui/gui_helper.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/portato/backend/portage_helper.py b/portato/backend/portage_helper.py
index 7fc6c34..6cfe25a 100644
--- a/portato/backend/portage_helper.py
+++ b/portato/backend/portage_helper.py
@@ -278,7 +278,7 @@ def split_package_name (name):
@returns: list: [category, name, version, rev] whereby rev is "r0" if not specified in the name
@rtype: string[]"""
- r = portage.catpkgsplit(name)
+ r = portage.catpkgsplit(portage.dep_getcpv(name))
if not r:
r = name.split("/")
if len(r) == 1:
diff --git a/portato/gui/gui_helper.py b/portato/gui/gui_helper.py
index 4fb4dba..7d8ead8 100644
--- a/portato/gui/gui_helper.py
+++ b/portato/gui/gui_helper.py
@@ -449,8 +449,6 @@ class EmergeQueue:
for p in packages:
if p in ["world", "system"]: continue
cat = backend.split_package_name(p)[0] # get category
- while cat[0] in ["=",">","<","!"]:
- cat = cat[1:]
self.db.reload(cat)
debug("Category %s refreshed" % cat)
@@ -474,7 +472,7 @@ class EmergeQueue:
process = Popen(command+options+packages, stdout = slave, stderr = STDOUT, shell = False)
# start thread waiting for the stop of emerge
- Thread(target=self._update_packages, args=(packages+self.deps.keys(), process)).start()
+ Thread(name="Emerge-Thread", target=self._update_packages, args=(packages+self.deps.keys(), process)).start()
# remove
for i in it: