[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Entries in Packages files that lack a Source field



On 20050519T205101+1000, Anthony Towns wrote:
> Something equivalent to:
> 
>   cat /var/lib/dpkg/available |
>     awk '/^Package:/ {P=$2;V=""}
>          /^Version:/ {if (V=="") { V=$2; } }
>          /^Source: .* (.*)/ {V=substr($3,2,length($3)-2)}
>          /^Source:/ {P=$2}
>          /^$/ { print "Source-Package:", P; print "Source-Version:", V }
>          {print}'
> 
> I would've thought. (That adds "Source-Package:" and "Source-Version:" 
> fields to every stanza)
> 
> The idea being that "grep-available --source-info [...]" would work the 
> same as piping the above into "| grep-ctrl [...]".

Any user can already put that in their ~/.grep-dctrlrc (well, a not
*literally* that, but instructions to that effect).

If someone wants it as a standard feature, feel free to wishlist-bug
grep-dctrl.
-- 
Antti-Juhani Kaijanaho, Debian developer 

http://kaijanaho.info/antti-juhani/blog/en/debian

Attachment: signature.asc
Description: Digital signature


Reply to: