From fb26d97afdae5bf7f2252d5e9106dcb47ec72a08 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 28 May 2007 07:11:53 +0000 Subject: [PATCH] For bug #180079, fix a KeyError so that a search for the empty string will go ahead and match all packages. (trunk r6648) svn path=/main/branches/2.1.2/; revision=6649 --- bin/emerge | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/emerge b/bin/emerge index 249f0e5a0..eca2b24c1 100755 --- a/bin/emerge +++ b/bin/emerge @@ -396,10 +396,10 @@ class search: print "Searching... ", regexsearch = False - if self.searchkey[0] == '%': + if self.searchkey.startswith('%'): regexsearch = True self.searchkey = self.searchkey[1:] - if self.searchkey[0] == '@': + if self.searchkey.startswith('@'): match_category = 1 self.searchkey = self.searchkey[1:] if regexsearch: -- 2.26.2