Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203981 - app-portage/portage-utils-0.1.28: qsearch doesn't understand DESCRIPTIONs that contain linebreaks
Summary: app-portage/portage-utils-0.1.28: qsearch doesn't understand DESCRIPTIONs tha...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-01-01 18:17 UTC by Matthias B.
Modified: 2009-03-15 10:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias B. 2008-01-01 18:17:22 UTC
qsearch doesn't understand DESCRIPTIONs that contain linebreaks. An example for  a package with a linebreak in DESCRIPTION is b43-fwcutter (and many more. A little find/grep combo counted about 180). The worst thing about this bug is that qsearch doesn't just take the 1st line of the DESCRIPTION, it ignores the complete package. This means that

qsearch -s b43-fwcutter

will return no results.



Reproducible: Always

Steps to Reproduce:
qsearch -s b43-fwcutter

Actual Results:  
<no output>

Expected Results:  
net-wireless/b43-fwcutter Firmware Tool for Broadcom 43xx based wireless network devices using the mac80211 wireless stack

or at least

net-wireless/b43-fwcutter Firmware Tool for Broadcom 43xx based wireless network devices


(i.e. the 1st line of the description)
Comment 1 Tristan Heaven (RETIRED) gentoo-dev 2008-01-14 15:35:27 UTC
Are newlines really allowed in DESCRIPTION? If so, shouldn't the cache files be generated with them replaced with a space, like with HOMEPAGE?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-03-04 23:40:02 UTC
(In reply to comment #1)
> Are newlines really allowed in DESCRIPTION?

Hmmm?

man bash
/IFS

<snip> 

IFS  The Internal Field Separator that is used for word splitting after expansion and to split lines into words with the read builtin command. The default value is ‘‘<space><tab><newline>’’.
</snip>
Comment 3 solar (RETIRED) gentoo-dev 2008-03-15 03:43:16 UTC
CACHE_METADATA is now default for qsearch. 
A new option(-e) was added for the fallback method of using CACHE_EBUILD