Re: SUG: Automatic RPM database verification and repair

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

 




On Dec 4, 2006, at 8:50 PM, Tony Nelson wrote:


At the moment, I can't find how to get the currently received signals from rpmlib. I only see two places where rpmsqCaught is used, in rpmsqAction() where they're set, and rpmdbCheckSignals(), where they're read. I don't see an available funciton that just polls them, though rpmsqCaught is a
global and such a thing could be added.  Was the suggestion that
rpmsqCaught could be used to make such a polling function?


Here's a no-brainer patch that should apply most everywhere to add a getter
method for rpmsqCaught, and a poll method for rpmdbCheckSignals().

If it helps, I'll add to the FC6 rpm-4.4.2, build, and make the packages available.

Feel free to suggest better. Subclassing on the existing python signal methods to unify rpmsqCaught with whatever python is doing would be the most Pythonic.

Alternatively, I can attempt sub-typing instead of sub-classing within rpm-python.

73 de Jeff

Attachment: rpm-caught.patch
Description: Binary data


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux