Re: [OT] Fun with walking package licenses

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

 



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!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux