[OT] Fun with walking package licenses

Mike McCarty mike.mccarty at sbcglobal.net
Tue Feb 21 15:11:59 UTC 2006


Andy Green wrote:
> Mike McCarty wrote:
> 
>>Andy Green wrote:
>>
>>This is cute. However...
> 
> 
>>You have a defect hiding in there. When I run it on a little
>>program or two I wrote in C, I get this output...
>>
>>$ lider bin/keys
>>package no is not installed
>>package package is not installed
>>package provides is not installed
>>package bin/keys is not installed
> 
> 
> It's just some noise from not detecting that it was unpackaged properly,
> the results should be correct regardless.  To fix change
> 
> 
>>> if [ ! -z "$pkg" ] ; then
> 
> 
> to
> 
>  if [ -z "`echo $pkg | grep not\ owned`" ] ; then

I'm not familiar with that form for grep. Do you mean

grep -v owned

?

Anyway, this still has a defect. If there is a package
with the string "owned" in its name, and it is the
only dependency, then this fails. See my other message
for a better solution.

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!




More information about the fedora-list mailing list