const Pathname SourceImpl::provideFile(const Pathname & file_r,
const unsigned media_nr)
{
+ if (_media == 0)
+ ZYPP_THROW(Exception("Source not initialized properly"));
_media->provideFile (file_r);
return _media->localPath (file_r);
}
const unsigned media_nr,
const bool recursive)
{
+ if (_media == 0)
+ ZYPP_THROW(Exception("Source not initialized properly"));
if (recursive)
_media->provideDirTree(path_r);
else
/** All resolvables provided by this source. */
const ResStore & resolvables(Source & source_r);
- /** Provide a file to local filesystem */
+ /**
+ * Provide a file to local filesystem
+ *
+ * \throws Exception
+ *
+ */
const Pathname provideFile(const Pathname & file,
const unsigned media_nr = 1);
- /** Provide a directory to local filesystem */
+ /**
+ * Provide a directory to local filesystem
+ *
+ * \throws Exception
+ *
+ */
const Pathname provideDir(const Pathname & path,
const unsigned media_nr = 1,
const bool recursive = false);