21 #undef ZYPP_BASE_LOGGER_LOGGROUP
22 #define ZYPP_BASE_LOGGER_LOGGROUP "zypp::plugin"
50 void load(
const Pathname & path_r )
52 PathInfo pi( path_r );
53 DBG <<
"+++++++++++++++ load " << pi << endl;
56 std::list<Pathname> entries;
59 WAR <<
"Plugin dir is not readable: " << pi << endl;
62 for_( it, entries.begin(), entries.end() )
65 if ( pii.isFile() && pii.userMayRX() )
69 else if ( pi.isFile() )
74 WAR <<
"Plugin file is not executable: " << pi << endl;
78 WAR <<
"Plugin path is neither dir nor file: " << pi << endl;
80 DBG <<
"--------------- load " << pi << endl;
85 DBG <<
"+++++++++++++++ send " << frame_r << endl;
94 DBG <<
"--------------- send " << frame_r << endl;
97 const std::list<PluginScript>
scripts()
const
104 MIL <<
"Load plugin: " << pi_r << endl;
114 if ( plugin.isOpen() )
119 WAR <<
"Failed to load plugin " << pi_r << endl;
128 script_r.
send( frame_r );
140 WAR <<
"Bad plugin response from " << script_r <<
": " << ret << endl;
158 : _pimpl( new
Impl() )
177 {
return str << obj.
_pimpl->scripts(); }