16#include <zypp-core/base/UserRequestException> 
   17#include <zypp-media/MediaException> 
   24#undef ZYPP_BASE_LOGGER_LOGGROUP 
   25#define ZYPP_BASE_LOGGER_LOGGROUP "zypp::fetcher" 
   56      for ( 
const auto & mm : 
_medias )
 
   57        manager.
close( mm.second );
 
 
   91    DBG << 
"Going to release file " << file
 
   92        << 
" from media number " << media_nr << endl;
 
 
  101                                bool dots, 
unsigned media_nr )
 
 
  129      const auto &fName = file.
filename();
 
 
 
  141      const auto &fName = file.
filename();
 
 
 
  157      const auto &fName = file.
filename();
 
 
 
  166    provide( std::ref(op), resource, options );
 
 
  200    url.setPathName (
"/");
 
 
  240    for ( 
const auto &resource : files ) {
 
  241           unsigned media_nr(resource.medianr());
 
  245        MIL << 
"Skipping precache of file " << resource.filename() << 
" media is not open";
 
 
  258                                ProvideFileOptions options )
 
  260    const auto &file(resource.
filename());
 
  261    unsigned media_nr(resource.
medianr());
 
  275        DBG << 
"Going to try to provide " << (resource.
optional() ? 
"optional" : 
"") << 
" file " << file
 
  276            << 
" from media number " << media_nr << endl;
 
  287        unsigned int devindex = 0;
 
  288        std::vector<std::string> devices;
 
  317              MIL << 
"Can't provide file. Non-Interactive mode." << endl;
 
  325            user = report->requestMedia (
 
  336          MIL << 
"ProvideFile exception caught, callback answer: " << user << endl;
 
  340            DBG << 
"Aborting" << endl;
 
  341            AbortRequestException aexcp(
"Aborting requested by user");
 
  342            aexcp.remember(excp);
 
  347            DBG << 
"Skipping" << endl;
 
  348            SkipRequestException nexcp(
"User-requested skipping of a file");
 
  349            nexcp.remember(excp);
 
  354            DBG << 
"Eject: try to release" << endl;
 
  358              media_mgr.
release (
media, devindex < devices.size() ? devices[devindex] : 
"");
 
  369            DBG << 
"Going to try again" << endl;
 
  380            DBG << 
"Don't know, let's ABORT" << endl;
 
 
  393                                      ProvideFileOptions options )
 
  399        provide( std::ref(op), resource, options );
 
  403    provide( std::ref(op), resource, options );
 
 
  435      WAR << 
"Verifier not found" << endl;
 
 
  445    if (scheme == 
"cd" || scheme == 
"dvd")
 
  448    DBG << 
"Rewriting url " << url_r << endl;
 
  463        url.setQueryParam(
"iso", isofile);
 
  464        DBG << 
"Url rewrite result: " << 
url << endl;
 
  477        url.setPathName(pathname);
 
  478        DBG << 
"Url rewrite result: " << 
url << endl;
 
 
  487    DBG << 
"Releasing all media IDs held by this MediaSetAccess" << endl;
 
  489    for (MediaMap::const_iterator m = 
_medias.begin(); m != 
_medias.end(); ++m)
 
  490      manager.
release(m->second, 
"");
 
 
Base class for Exception.
std::string asUserHistory() const
A single (multiline) string composed of asUserString and historyAsString.
std::string getScheme() const
Returns the scheme name of the URL.
std::string getPathName(EEncoding eflag=zypp::url::E_DECODED) const
Returns the path name from the URL.
std::string getQueryParam(const std::string ¶m, EEncoding eflag=zypp::url::E_DECODED) const
Return the value for the specified query parameter.
const std::string & asString() const
String representation.
static ManagedFile asManagedFile()
Create a temporary file and convert it to a automatically cleaned up ManagedFile.
@ icase
Do not differentiate case.
Regular expression match result.
String related utilities and Regular expression matching.
std::list< DirEntry > DirContent
Returned by readdir.
int hardlinkCopy(const Pathname &oldpath, const Pathname &newpath)
Create newpath as hardlink or copy of oldpath.
std::string numstring(char n, int w=0)
bool regex_match(const std::string &s, smatch &matches, const regex ®ex)
\relates regex \ingroup ZYPP_STR_REGEX    \relates regex \ingroup ZYPP_STR_REGEX
Easy-to use interface to the ZYPP dependency resolver.
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
void operator()(media::MediaAccessId media, const OnMediaLocation &file)
void operator()(media::MediaAccessId media, const OnMediaLocation &file)
void operator()(media::MediaAccessId media, const OnMediaLocation &file)
ProvideFileExistenceOperation()
void operator()(media::MediaAccessId media, const OnMediaLocation &file)
#define ZYPP_RETHROW(EXCPT)
Drops a logline and rethrows, updating the CodeLocation.
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
#define IMPL_PTR_TYPE(NAME)