RHInception / jsonstats

system stats over rest in json (buzzzzwords here)
MIT License
22 stars 8 forks source link

"import rpm" module instead of executing /usr/bin/rpm in RPM plugin #27

Open magnus919 opened 10 years ago

magnus919 commented 10 years ago

Currently, the RPM plugin is fetching data via external calls to /usr/bin/rpm rather than using the native Python calls which bind to librpm.

Some pointers at: http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch-rpm-programming-python.html

tbielawa commented 10 years ago

Patches accepted.

Needs to gracefully handle if rpm library is not installed. On Dec 18, 2013 5:20 PM, "Magnus Hedemark" notifications@github.com wrote:

Currently, the RPM plugin is fetching data via external calls to /usr/bin/rpm rather than using the native Python calls which bind to librpm.

Some pointers at: http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch-rpm-programming-python.html

— Reply to this email directly or view it on GitHubhttps://github.com/RHInception/jsonstats/issues/27 .