summaryrefslogtreecommitdiff
path: root/portato/db/sql.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-04-23 01:03:17 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-04-23 01:03:17 +0200
commit755323a95128d3c42108ce55befaf766fc19f306 (patch)
treee58d45110551ee8be05d53aaa8b75ab4a012df83 /portato/db/sql.py
parent6021507f58e9a30cb0324270c8e27aa0a0691a8c (diff)
parent3fddc267618c034aae980060e560ce80ba20cbe6 (diff)
downloadportato-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 '')
-rw-r--r--portato/db/sql.py2
1 files changed, 1 insertions, 1 deletions
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}