#include <YUMScriptImpl.h>
Inheritance diagram for zypp::source::yum::YUMScriptImpl:
Public Member Functions | |
YUMScriptImpl (Source_Ref source_r, const zypp::parser::yum::YUMPatchScript &parsed) | |
Default ctor. | |
virtual Pathname | do_script () const |
Get the script to perform the change. | |
virtual Pathname | undo_script () const |
Get the script to undo the change. | |
virtual bool | undo_available () const |
Check whether script to undo the change is available. | |
Source_Ref | source () const |
Backlink to the source providing this. | |
Protected Attributes | |
std::string | _do_script |
The script to perform the change. | |
std::string | _undo_script |
The script to undo the change. | |
Pathname | _do_location |
Location of external do script on the medium. | |
Pathname | _undo_location |
Location of external undo script on the medium. | |
unsigned | _do_media |
Media number of the do script. | |
unsigned | _undo_media |
Media number of the undo script. | |
filesystem::TmpFile | _tmp_file |
CheckSum | _do_checksum |
CheckSum | _undo_checksum |
Private Attributes | |
Source_Ref | _source |
Definition at line 35 of file YUMScriptImpl.h.
|
Default ctor.
Definition at line 42 of file YUMScriptImpl.cc. References _do_media, _undo_media, zypp::parser::yum::YUMPatchScript::do_media, and zypp::parser::yum::YUMPatchScript::undo_media. |
|
Get the script to perform the change.
Implements zypp::detail::ScriptImplIf. Definition at line 64 of file YUMScriptImpl.cc. References _do_checksum, _do_location, _do_media, _do_script, _tmp_file, zypp::filesystem::Pathname::asString(), zypp::source::yum::YUMSourceImpl::checkCheckSum(), zypp::CheckSum::checksum(), N_, zypp::filesystem::TmpPath::path(), zypp::Source_Ref::provideFile(), source(), zypp::CheckSum::type(), and ZYPP_THROW. |
|
Get the script to undo the change.
Implements zypp::detail::ScriptImplIf. Definition at line 88 of file YUMScriptImpl.cc. References _tmp_file, _undo_checksum, _undo_location, _undo_media, _undo_script, zypp::filesystem::Pathname::asString(), zypp::source::yum::YUMSourceImpl::checkCheckSum(), zypp::CheckSum::checksum(), N_, zypp::filesystem::TmpPath::path(), zypp::Source_Ref::provideFile(), source(), zypp::CheckSum::type(), and ZYPP_THROW. |
|
Check whether script to undo the change is available.
Implements zypp::detail::ScriptImplIf. Definition at line 109 of file YUMScriptImpl.cc. References _undo_location, and _undo_script. |
|
Backlink to the source providing this.
Reimplemented from zypp::detail::ResObjectImplIf. Definition at line 114 of file YUMScriptImpl.cc. References _source. Referenced by do_script(), and undo_script(). |
|
The script to perform the change.
Definition at line 52 of file YUMScriptImpl.h. Referenced by do_script(). |
|
The script to undo the change.
Definition at line 54 of file YUMScriptImpl.h. Referenced by undo_available(), and undo_script(). |
|
Location of external do script on the medium.
Definition at line 56 of file YUMScriptImpl.h. Referenced by do_script(). |
|
Location of external undo script on the medium.
Definition at line 58 of file YUMScriptImpl.h. Referenced by undo_available(), and undo_script(). |
|
Media number of the do script.
Definition at line 60 of file YUMScriptImpl.h. Referenced by do_script(), and YUMScriptImpl(). |
|
Media number of the undo script.
Definition at line 62 of file YUMScriptImpl.h. Referenced by undo_script(), and YUMScriptImpl(). |
|
Definition at line 63 of file YUMScriptImpl.h. Referenced by do_script(), and undo_script(). |
|
Definition at line 65 of file YUMScriptImpl.h. Referenced by do_script(). |
|
Definition at line 66 of file YUMScriptImpl.h. Referenced by undo_script(). |
|
Definition at line 68 of file YUMScriptImpl.h. Referenced by source(). |