Synchronize file with Mandriva Pulse

This lib is part of Pulse:
https://github.com/mandriva-management-console/mmc/

so merge the 2 branches into one.