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

Re: Script to identify source of RPM



On 07/20/2009 10:25 PM, Jon Stanley wrote:
On Mon, Jul 20, 2009 at 9:38 AM, Michael Stahnke<mastahnke gmail com> wrote:

First off, thanks for this.  Secondly, would it be possible to comma
separate the rpm,repo ?  Then it's easily grep-able and such.  Tabs
might work also.

It came back waving flags :)

I've got a new version at
http://jstanley.fedorapeople.org/key_checker.py that takes a new -m
option to output in a machine-readable format.  The code has also been
significantly refactored to make it less retarded :)

Where should bug reports go ?
a)
[wolfy wolfy bin]$ ./key_checker.py
Traceback (most recent call last):
 File "./key_checker.py", line 60, in <module>
   getPkg()
 File "./key_checker.py", line 41, in getPkg
   pkgs[key].append(nevra)
KeyError: 'Unkown key 0b86274e'

b)
keys.py works OK by itself but cries for mamma if piped to head:
[wolfy wolfy bin]$ ./keys.py |head -5
Unknown signing key
-------------------
perl-Tk-804.028-9.fc10.x86_64

RPM Fusion repository (Fedora - free)
Traceback (most recent call last):
 File "./keys.py", line 59, in <module>
   print pkginstance
IOError: [Errno 32] Broken pipe


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