filter


Description:

[ Version ( since = "0.6.3" ) ]
public PackageSack filter (PackageSackFilterFunc filter_cb)

Returns a new package sack which only matches packages that return true from the filter function.

Parameters:

this

a valid PackageSack instance

filter_cb

a PackageSackFilterFunc, which returns true for the Package's to add

user_data

user data to pass to filter_cb

Returns:

a new PackageSack, free with unref