45 const Pathname &attach_point_hint_r)
50 MIL <<
"MediaISO::MediaISO(" << url_r <<
", "
51 << attach_point_hint_r <<
")" << std::endl;
56 ERR <<
"Media url does not contain iso filename" << std::endl;
71 if( arg.empty() &&
_isofile.dirname().absolute())
73 src = std::string(
"dir:///");
85 ERR <<
"Unable to parse iso filename source media url" << std::endl;
92 ERR <<
"Invalid iso filename source media url" << std::endl;
97 ERR <<
"ISO filename source media url with iso scheme (nested iso): "
110 ERR <<
"ISO filename source media url scheme is not supported: "
129 DBG <<
"Closing parent handler..." << std::endl;
173 "Unable to find iso filename on source media",
183 if( isofile.empty() || !PathInfo(isofile).isFile())
195 DBG <<
"Using a shared media "
211 std::string mountopts(
"ro,loop");
214 mount.
mount(isofile.asString(), mountpoint,
223 while( !(mountsucceeded=
isAttached()) && --limit)
241 "Unable to verify that the media was mounted",
242 isofile.asString(), mountpoint
266 WAR <<
"Not been able to cleanup the parent mount." << endl;
282 bool recurse_r)
const
289 const Pathname &dirname,
297 const Pathname &dirname,
std::string asString(const DefaultIntegral< Tp, TInitial > &obj)
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
Store and operate with byte count.
std::string encode(const std::string &str, const std::string &safe, EEncoding eflag)
Encodes a string using URL percent encoding.
Base class for all URL exceptions.
bool isValid() const
Verifies the Url.
std::string asString() const
Returns a default string representation of the Url object.
void remember(const Exception &old_r)
Store an other Exception as history.
void setPathName(const std::string &path, EEncoding eflag=zypp::url::E_DECODED)
Set the path name.
std::list< DirEntry > DirContent
Returned by readdir.
#define URL_SAFE_CHARS
Characters that are safe for URL without percent-encoding.
std::string getQueryParam(const std::string ¶m, EEncoding eflag=zypp::url::E_DECODED) const
Return the value for the specified query parameter.
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).
Base class for Exception.
Pathname expandlink(const Pathname &path_r)
Recursively follows the symlink pointed to by path_r and returns the Pathname to the real file or dir...
std::string getScheme() const
Returns the scheme name of the URL.