Func RPM Verification Project – Release 0.2

I found the documentation of the RPM Python API in the address: http://docs.fedoraproject.org/drafts/rpm-guide-en/ch16s06.html

Varinder show me the command

#func <target_machine> call system list_module

I read the documentation in the func fedora hosted website and I found another useful command:

#func <target_machine> call system list_methods

The items only appear after restart the funcd daemon.

I modified the rpms module and added a new function call verify, the output of list methods is:

[root@milton func]# func milton.ca call rpms list_methods
{‘milton.ca’: [‘verify’,
‘glob’,
‘inventory’,
‘module_description’,
‘module_version’,
‘get_method_args’,
‘module_api_version’,
‘list_methods’]}

Now the verify is working like the inventory function, but soon I will put the functions needed.

In the rpms module there are some methods inventory, glob, module_description, module_version and now verify.

  • inventory

Returns information on all installed packages.

  • glob

Return a list of installed packages that match a pattern, kind of packet search.

  • module_description

[root@milton func]# func milton.ca call rpms module_description
{‘milton.ca’: ‘RPM related commands.’}

  • module_version

[root@milton func]# func milton.ca call rpms module_version
{‘milton.ca’: ‘0.0.2’}

  • verify

Returns information of the verification of all installed packages.

func-logo-small2

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: