refresh_cache


Description:

[ Version ( since = "0.5.3" ) ]
public Results refresh_cache (bool force, Cancellable? cancellable, ProgressCallback progress_callback) throws Error

Refresh the cache, i.e. download new metadata from a remote URL so that package lists are up to date.

This action may take a few minutes and should be done when the session and system are idle.

Warning: this function is synchronous, and may block. Do not use it in GUI applications.

Parameters:

this

a valid Client instance

force

if we should aggressively drop caches

cancellable

a Cancellable or null

progress_callback

the function to run when the progress changes

progress_user_data

data to pass to progress_callback

Returns:

a Results object, or null for error