45 #define NO_REPOSITORY_RETURN( VAL ) \
46 sat::detail::CRepo * _repo( get() ); \
47 if ( ! _repo ) return VAL
49 #define NO_REPOSITORY_THROW( VAL ) \
50 sat::detail::CRepo * _repo( get() ); \
51 if ( ! _repo ) ZYPP_THROW( VAL )
76 return _repo->priority;
82 return _repo->subpriority;
104 if ( it.asString() == id_r )
138 for (
const auto & val :
keywords() )
169 if ( compare( cpeid_r, it.cpeId(), SetRelation::subset ) )
175 if ( ! myIds.
empty() )
181 if ( compare( cpeid_r, prod->cpeId(), SetRelation::superset ) )
185 if ( prod->hasUpdateContentIdentifier( myId.asString() ) )
204 if ( ! myIds.
empty() )
222 return !_repo->nsolvables;
228 return _repo->nsolvables;
285 info_r.
alias().c_str(),
alias().c_str() ) ) );
288 MIL << *
this << endl;
300 MIL << *
this <<
" removed from pool" << endl;
312 if ( ++it != _for_end )
331 if (
myPool()._addSolv( _repo, file ) != 0 )
336 MIL << *
this <<
" after adding " << file_r << endl;
343 std::string command( file_r.extension() ==
".gz" ?
"zcat " :
"cat " );
344 command += file_r.asString();
353 if (
myPool()._addHelix( _repo, file ) != 0 )
358 MIL << *
this <<
" after adding " << file_r << endl;
375 return str <<
"noRepository";
377 return str <<
"sat::repo(" << obj.
alias() <<
")"
379 <<
"prio " << obj.
get()->priority <<
'.' << obj.
get()->subpriority
387 {
"name", obj.
name() },
388 {
"alias", obj.
alias() }
402 }
while ( base() < satpool->repos+satpool->nrepos && !*base() );