From 3321525bf3126bc4fa69ca8c9bd294d7c47037da Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Tue, 18 Mar 2008 12:24:35 +0000 Subject: [PATCH] Entropy: - updated TODO Equo: - add 'You meant...' feature, ahahah that's awesome git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1489 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- TODO | 2 -- client/text_ui.py | 12 +++++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 24ed0212b..5d3fdcb53 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,6 @@ TODO list - make an ETP_DIR switching function - lilo.conf trigger? - - equo: "you meant...?" feature - hard-disk repositories support ! - calculate extra deps from NEEDED, server side? - NEEDED + ldconfig -p ? - create a meta-packages list ... I hate Joost @@ -24,7 +23,6 @@ TODO list Spritz: - improve notification applet - - make the properties menu fit in a 640x480 display - interface bug reporting interface (ahah) - handle entropy exceptions - add masking menu diff --git a/client/text_ui.py b/client/text_ui.py index 664daa854..9a14827a0 100644 --- a/client/text_ui.py +++ b/client/text_ui.py @@ -263,7 +263,17 @@ def installPackages(packages = [], atomsdata = [], deps = True, emptydeps = Fals m_atom = "idpackage: %s matching %s is broken" % (m_match[0],package,) print_warning(blue(" <> ")+red("atom: ")+brown(m_atom)) else: - print_warning(bold("!!!")+red(" No match for ")+bold(package)+red(" in database. If you omitted the category, try adding it.")) + print_warning(bold("!!!")+red(" No match for ")+bold(package)+red(" in database.")) + # search similar packages + # you meant...? + import text_query + items = text_query.searchPackage([package],idreturn = True) + if items: + print_info(bold(" ?")+red(" When you wrote ")+bold(package)+darkgreen(" You Meant(tm) ")+red("one of these below?")) + for match in items: + dbc = Equo.openRepositoryDatabase(match[1]) + meant_atom = dbc.retrieveAtom(match[0]) + print_info(red(" # ")+blue(meant_atom)+red(" ?")) continue foundAtoms.append(match) if tbz2: