libzypp  17.25.8
zypp::ZYppCommitPolicy Class Reference

Options and policies for ZYpp::commit. More...

#include <ZYppCommitPolicy.h>


class  Impl

Public Member Functions

 ZYppCommitPolicy ()
ZYppCommitPolicyrestrictToMedia (unsigned mediaNr_r)
 Restrict commit to media 1. More...
ZYppCommitPolicyallMedia ()
 Process all media (default) More...
unsigned restrictToMedia () const
ZYppCommitPolicydryRun (bool yesNo_r)
 Set dry run (default: false). More...
bool dryRun () const
ZYppCommitPolicydownloadMode (DownloadMode val_r)
 Commit download policy to use. More...
DownloadMode downloadMode () const
ZYppCommitPolicyrpmInstFlags (target::rpm::RpmInstFlags newFlags_r)
 The default target::rpm::RpmInstFlags. More...
ZYppCommitPolicyrpmNoSignature (bool yesNo_r)
 Use rpm option –nosignature (default: false) More...
ZYppCommitPolicyrpmExcludeDocs (bool yesNo_r)
 Use rpm option –excludedocs (default: false) More...
target::rpm::RpmInstFlags rpmInstFlags () const
bool rpmNoSignature () const
bool rpmExcludeDocs () const
ZYppCommitPolicysyncPoolAfterCommit (bool yesNo_r)
 Kepp pool in sync with the Target databases after commit (default: true) More...
bool syncPoolAfterCommit () const

Private Attributes

RWCOW_pointer< Impl_pimpl
 Pointer to data. More...

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const ZYppCommitPolicy &obj)
 Stream output. More...

Detailed Description

Options and policies for ZYpp::commit.

See also

Definition at line 33 of file ZYppCommitPolicy.h.

Constructor & Destructor Documentation

◆ ZYppCommitPolicy()

zypp::ZYppCommitPolicy::ZYppCommitPolicy ( )

Definition at line 60 of file

Member Function Documentation

◆ restrictToMedia() [1/2]

ZYppCommitPolicy & zypp::ZYppCommitPolicy::restrictToMedia ( unsigned  mediaNr_r)

Restrict commit to media 1.

Fake outstanding YCP fix: Honour restriction to media 1 at installation, but install all remaining packages if post-boot (called with mediaNr_r > 1).

Definition at line 65 of file

◆ allMedia()

ZYppCommitPolicy& zypp::ZYppCommitPolicy::allMedia ( )

Process all media (default)

Definition at line 48 of file ZYppCommitPolicy.h.

◆ restrictToMedia() [2/2]

unsigned zypp::ZYppCommitPolicy::restrictToMedia ( ) const

Definition at line 68 of file

◆ dryRun() [1/2]

ZYppCommitPolicy & zypp::ZYppCommitPolicy::dryRun ( bool  yesNo_r)

Set dry run (default: false).

Dry-run should not change anything on the system, unless the downloadMode is set to DownloadOnly. In that case packages are downloaded to the local cache.

Definition at line 72 of file

◆ dryRun() [2/2]

bool zypp::ZYppCommitPolicy::dryRun ( ) const

Definition at line 75 of file

◆ downloadMode() [1/2]

ZYppCommitPolicy & zypp::ZYppCommitPolicy::downloadMode ( DownloadMode  val_r)

Commit download policy to use.

(default: DownloadDefault)

DownloadOnly also implies a dryRun.

Definition at line 79 of file

◆ downloadMode() [2/2]

DownloadMode zypp::ZYppCommitPolicy::downloadMode ( ) const

Definition at line 82 of file

◆ rpmInstFlags() [1/2]

ZYppCommitPolicy & zypp::ZYppCommitPolicy::rpmInstFlags ( target::rpm::RpmInstFlags  newFlags_r)

The default target::rpm::RpmInstFlags.

(default: none)

Definition at line 86 of file

◆ rpmNoSignature() [1/2]

ZYppCommitPolicy & zypp::ZYppCommitPolicy::rpmNoSignature ( bool  yesNo_r)

Use rpm option –nosignature (default: false)

Definition at line 89 of file

◆ rpmExcludeDocs() [1/2]

ZYppCommitPolicy & zypp::ZYppCommitPolicy::rpmExcludeDocs ( bool  yesNo_r)

Use rpm option –excludedocs (default: false)

Definition at line 92 of file

◆ rpmInstFlags() [2/2]

target::rpm::RpmInstFlags zypp::ZYppCommitPolicy::rpmInstFlags ( ) const

Definition at line 95 of file

◆ rpmNoSignature() [2/2]

bool zypp::ZYppCommitPolicy::rpmNoSignature ( ) const

Definition at line 98 of file

◆ rpmExcludeDocs() [2/2]

bool zypp::ZYppCommitPolicy::rpmExcludeDocs ( ) const

Definition at line 101 of file

◆ syncPoolAfterCommit() [1/2]

ZYppCommitPolicy & zypp::ZYppCommitPolicy::syncPoolAfterCommit ( bool  yesNo_r)

Kepp pool in sync with the Target databases after commit (default: true)

Definition at line 105 of file

◆ syncPoolAfterCommit() [2/2]

bool zypp::ZYppCommitPolicy::syncPoolAfterCommit ( ) const

Definition at line 108 of file

Friends And Related Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  str,
const ZYppCommitPolicy obj 

Stream output.

Definition at line 112 of file

Member Data Documentation

◆ _pimpl

RWCOW_pointer<Impl> zypp::ZYppCommitPolicy::_pimpl

Pointer to data.

Definition at line 98 of file ZYppCommitPolicy.h.

The documentation for this class was generated from the following files: