paludis  Version 2.6.0
Public Attributes | List of all members
paludis::UninstallActionOptions Struct Reference

#include <action.hh>

Public Attributes

NamedValue< n::config_protect, std::string > config_protect
 
NamedValue< n::if_for_install_id, std::shared_ptr< const PackageID > > if_for_install_id
 
NamedValue< n::ignore_for_unmerge, std::function< bool(const FSPath &)> > ignore_for_unmerge
 
NamedValue< n::is_overwrite, bool > is_overwrite
 
NamedValue< n::make_output_manager, std::function< std::shared_ptr< OutputManager > const UninstallAction &)> > make_output_manager
 
NamedValue< n::override_contents, std::shared_ptr< const Contents > > override_contents
 
NamedValue< n::want_phase, std::function< WantPhase(const std::string &)> > want_phase
 

Detailed Description

Options for an UninstallAction.

See also
UninstallAction
Since
0.30

Member Data Documentation

NamedValue<n::if_for_install_id, std::shared_ptr<const PackageID> > paludis::UninstallActionOptions::if_for_install_id

If we're being uninstalled as part of an install, this is the ID that's being installed. Otherwise null.

Since
0.36
NamedValue<n::ignore_for_unmerge, std::function<bool (const FSPath &)> > paludis::UninstallActionOptions::ignore_for_unmerge

Sometimes we never want to unmerge certain files.

Since
0.38
0.55 uses FSPath
NamedValue<n::is_overwrite, bool> paludis::UninstallActionOptions::is_overwrite

Some repositories need to do special handlings for direct overwrites (foo-1.2 replacing foo-1.2). Clients should set this to false.

Since
0.36
NamedValue<n::make_output_manager, std::function<std::shared_ptr<OutputManager> const UninstallAction &)> > paludis::UninstallActionOptions::make_output_manager

This is a function to avoid chicken / egg problems when using Environment::create_output_manager.

Since
0.36
NamedValue<n::override_contents, std::shared_ptr<const Contents> > paludis::UninstallActionOptions::override_contents

Sometimes we need to override the contents of an installed package, for example when doing 'overwrite' merges for VDB.

Not all repositories support this, or do what you expect with it. Clients should always set this to null.

Since
0.61
NamedValue<n::want_phase, std::function<WantPhase (const std::string &)> > paludis::UninstallActionOptions::want_phase
Since
0.77

The documentation for this struct was generated from the following file: