You are not logged in.

#1 2011-04-10 06:37:18

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 616

[yaourt] search results: a single row for each package

Currently serach results are presented a way when each package takes two lines:

[repo]/[name] [version] [votes]
    description

Is it possible to configure yaourt to force each package info be placed on a single line? -

[repo]/[name] [version] [votes]  description


"I exist" is the best myth I know..

Offline

#2 2011-04-10 14:09:36

hauzer
Member
From: Belgrade, Serbia
Registered: 2010-11-17
Posts: 279
Website

Re: [yaourt] search results: a single row for each package

Well, it's easy once you examine the code of yaourt and see what external programs it calls. It uses package-query to display it's information from AUR, so you'll need to patch that. There's a function in util.c named color_print_package which prints all the information when you search for packages. The patch is fairly simple, it just changes one character, from '\n' to ' '. Here it is: http://pastebin.com/yQ6G4PCd Also, I've made a PKGBUILD to use with it for convinience: http://pastebin.com/dysE8BtU
I really don't see the point of this, maybe for some kind of script or ..?

Last edited by hauzer (2011-04-10 14:19:40)


Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

Offline

#3 2011-04-10 17:13:34

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 616

Re: [yaourt] search results: a single row for each package

Thanks for the tip, but I'd more want to have the feature as option (say, for case of grepping) rather on constant base.


"I exist" is the best myth I know..

Offline

#4 2011-04-10 22:15:38

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [yaourt] search results: a single row for each package

cower can do this for AUR searches via the --format flag. expac can do the same for binary repos.

Offline

#5 2011-04-10 22:26:23

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 616

Re: [yaourt] search results: a single row for each package

@falconindy

Thanks, will try them.


"I exist" is the best myth I know..

Offline

Board footer

Powered by FluxBB