if( assert_dir( dest.dirname() ) )
{
DBG << "assert_dir " << dest.dirname() << " failed" << endl;
- ZYPP_THROW( MediaSystemException(_url, "System error on " + dest.dirname().asString()) );
+ ZYPP_THROW( MediaSystemException(url, "System error on " + dest.dirname().asString()) );
}
DBG << "URL: " << url.asString() << endl;
CURLcode ret = curl_easy_setopt( _curl, CURLOPT_URL,
urlBuffer.c_str() );
if ( ret != 0 ) {
- ZYPP_THROW(MediaCurlSetOptException(_url, _curlError));
+ ZYPP_THROW(MediaCurlSetOptException(url, _curlError));
}
string destNew = target.asString() + ".new.zypp.XXXXXX";
{
ERR << "out of memory for temp file name" << endl;
ZYPP_THROW(MediaSystemException(
- _url, "out of memory for temp file name"
+ url, "out of memory for temp file name"
));
}
if ( ret != 0 ) {
::fclose( file );
filesystem::unlink( destNew );
- ZYPP_THROW(MediaCurlSetOptException(_url, _curlError));
+ ZYPP_THROW(MediaCurlSetOptException(url, _curlError));
}
// Set callback and perform.
{
err = "File not found";
}
- ZYPP_THROW( MediaCurlException(_url, err, _curlError));
+ ZYPP_THROW( MediaCurlException(url, err, _curlError));
}
}
break;
err = "Unrecognized error";
break;
}
- ZYPP_THROW(MediaCurlException(_url, err, _curlError));
+ ZYPP_THROW(MediaCurlException(url, err, _curlError));
}
catch (const MediaException & excpt_r)
{