[Slapt-get-user] How does search work?

Per Börjesson sky at hi.eclipse.co.uk
Sun Jun 25 11:27:58 EDT 2006


Scott Lockwood wrote:
> Also, that's odd. Results like lvm- should not have been returned for
> "^lvm2*"... That makes me wonder if slapt-get isn't handling the regex
> correctly... 

Yes, that's what it looks like. Certainly, search-forward-regexp in emacs
works the way I expect, but then I'm not a regex expert so I was hoping
someone who is could point out to me what I'm missing.

Regards
Per

> 
> -----Original Message-----
> From: slapt-get-user-bounces at jaos.org
> [mailto:slapt-get-user-bounces at jaos.org] On Behalf Of Per Börjesson
> Sent: Sunday, June 25, 2006 10:01 AM
> To: Slapt-get User
> Subject: Re: [Slapt-get-user] How does search work?
> 
> Scott Lockwood wrote:
>> Try "^lvm2*" as your search expression. 
> 
> I tried it and I got
> 
> kernel 97% slapt-get --search '^lvm2*'
> lvm-1.0.8-i486-1 [inst=no]: lvm (Logical Volume Manager)
> lvm2-2.01.09-i486-1 [inst=yes]: lvm2 (Logical Volume Manager version 2)
> 
> ...but even if this does not give me what I would expect either, I'm really
> interested in a search pattern for lvm (not lvm2) that I can use in my
> EXCLUDE list. That is why I was trying ^lvm-.
> 
> Regards
> Per
> 
>> -----Original Message-----
>> From: slapt-get-user-bounces at jaos.org
>> [mailto:slapt-get-user-bounces at jaos.org] On Behalf Of Per Börjesson
>> Sent: Sunday, June 25, 2006 7:18 AM
>> To: Slapt-get User
>> Subject: [Slapt-get-user] How does search work?
>>
>> Hi,
>>
>> I'm using lvm2 so I want to avoid lvm. I can do:
>>
>> kernel 26% slapt-get --search lvm
>> lvm-1.0.8-i486-1 [inst=no]: lvm (Logical Volume Manager)
>> device-mapper-1.01.04-i486-1 [inst=yes]: device-mapper (device-mapper 
>> for logical volume management)
>> lvm2-2.01.09-i486-1 [inst=yes]: lvm2 (Logical Volume Manager version 
>> 2)
>>
>> My knowledge of regular expressions is very poor, but I used 
>> www.regular-expressions.info to figure out that I could try
>>
>> kernel 37% slapt-get --search ^lvm
>> lvm-1.0.8-i486-1 [inst=no]: lvm (Logical Volume Manager)
>> lvm2-2.01.09-i486-1 [inst=yes]: lvm2 (Logical Volume Manager version 
>> 2)
>>
>> OK, so it doesn't bother with device-mapper now. Next I did
>>
>> kernel 38% slapt-get --search ^lvm-
>>
>> ...and I got nothing! Why doesn't it find "lvm-1.0.8-i486-1"?
>>
>> I used the search-forward-regexp function in emacs and there ^lvm- 
>> certainly matched "lvm-1.0.8-i486-1"
>> but not "lvm2-2.01.09-i486-1"!
>>
>> OK, I then tried
>>
>> kernel 39% slapt-get --search ^lvm-[0-9]
>>
>> ...and I got a huge list of what seems to be irrelevant packages but 
>> "lvm-1.0.8-i486-1"
>> was not in the list. I suspected that the shell was expanding my 
>> arguments so I tried
>>
>> kernel 63% slapt-get --search '^lvm-[0-9]'
>>
>> ...and nothing. I tried
>>
>> kernel 65% slapt-get --search '^lvm-[0-9].+'
>>
>> ...and nothing.
>>
>> The man page states that "names, locations, and descriptions of packages"
>> are searched.
>> So, shouldn't I at least find the name "lvm-1.0.8-i486-1"?
>>
>> Regards
>> Per
>>
> _______________________________________________
> Slapt-get-user mailing list
> Slapt-get-user at software.jaos.org
> http://software.jaos.org/cgi-bin/mailman/listinfo/slapt-get-user
> 
> 


-- 
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Per Borjesson
17 Pooles Wharf Court
Rownham Mead
Bristol
BS8 4PB
UK
tel home: +44 (0)117 9226913
mobile:   +44 (0)7764 323495
mailto:sky at hi.eclipse.co.uk
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤


More information about the Slapt-get-user mailing list