From 3cd0926203e1a6e7c8bd50a8195336c85daf9f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 2 Mar 2009 21:27:46 +0100 Subject: Fix search --- portato/gui/windows/main.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'portato/gui') diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index 793d1b6..5b3bf7e 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -1646,6 +1646,9 @@ class MainWindow (Window): """Do a search.""" text = entry.get_text() if text != "": + if not "*" in text: + text = ".*%s.*" % text + packages = system.find_packages(text, with_version = False) if packages == []: -- cgit v1.2.3