diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-23 01:03:17 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-23 01:03:17 +0200 |
commit | 755323a95128d3c42108ce55befaf766fc19f306 (patch) | |
tree | e58d45110551ee8be05d53aaa8b75ab4a012df83 /portato | |
parent | 6021507f58e9a30cb0324270c8e27aa0a0691a8c (diff) | |
parent | 3fddc267618c034aae980060e560ce80ba20cbe6 (diff) | |
download | portato-755323a95128d3c42108ce55befaf766fc19f306.tar.gz portato-755323a95128d3c42108ce55befaf766fc19f306.tar.bz2 portato-755323a95128d3c42108ce55befaf766fc19f306.zip |
Merge branch '0.14'
* 0.14:
new version plugin showed the versions in the wrong order
Clearer debug message for packages not in mergequeue
Reset HOME to /root for root
Small error in sqldb
Updated french translation to current translation status.
Typo in TRANSLATORS
Updated portguese translation
Diffstat (limited to 'portato')
-rw-r--r-- | portato/constants.py | 4 | ||||
-rw-r--r-- | portato/db/sql.py | 2 | ||||
-rw-r--r-- | portato/gui/queue.py | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/portato/constants.py b/portato/constants.py index a8e930c..059017e 100644 --- a/portato/constants.py +++ b/portato/constants.py @@ -50,6 +50,10 @@ These should be set during the installation. import os from os.path import join as pjoin +# ktsuss does not reset this correctly +if os.getuid() == 0: + os.environ["HOME"] = "/root" + # icons ICON_DIR = "icons/" APP_ICON = pjoin(ICON_DIR, "portato-icon.png") diff --git a/portato/db/sql.py b/portato/db/sql.py index f3b93f0..a891e1a 100644 --- a/portato/db/sql.py +++ b/portato/db/sql.py @@ -261,7 +261,7 @@ class SQLDatabase (Database): if self._type & self.SEARCH_NAME: if "/" in restrict: - rest = "(name LIKE '%s%%' AND cat LIKE '%s')" % (pkg, cat) + rest = "(name LIKE '%s%%' AND cat LIKE '%s')" % restrict.split("/",1) else: rest = "(name LIKE '%%%(restrict)s%%' OR cat LIKE '%(restrict)s%%')" % {"restrict":restrict} diff --git a/portato/gui/queue.py b/portato/gui/queue.py index d3ae1f2..ff82441 100644 --- a/portato/gui/queue.py +++ b/portato/gui/queue.py @@ -637,7 +637,7 @@ class EmergeQueue: try: self.oneshotmerge.remove(cpv) except ValueError: - debug("Catched ValueError => %s seems not to be in merge-queue. Should be no harm.", cpv) + debug("Catched ValueError => %s seems not to be in merge-queue. This probably means it is a dependency.", cpv) elif self.tree.is_in_unmerge(it): # in Unmerge try: |