{}
inline void
- checkAttached()
+ checkAttached(MediaAccessId id)
{
if( !handler->isAttached())
{
+ DBG << "checkAttached(" << id << ") not attached" << std::endl;
desired = false;
ZYPP_THROW(MediaNotAttachedException(
handler->url()
}
inline void
- checkDesired()
+ checkDesired(MediaAccessId id)
{
- checkAttached();
+ checkAttached(id);
if( !desired)
{
if( !desired)
{
+ DBG << "checkDesired(" << id << "): not desired" << std::endl;
ZYPP_THROW(MediaNotDesiredException(
handler->url()
));
}
- DBG << "checkDesired(): desired (report)" << std::endl;
+ DBG << "checkDesired(" << id << "): desired (report)" << std::endl;
} else {
- DBG << "checkDesired(): desired (cached)" << std::endl;
+ DBG << "checkDesired(" << id << "): desired (cached)" << std::endl;
}
}
ManagedMedia &ref( m_impl->findMM(accessId));
+ DBG << "attach(id=" << accessId << ")" << std::endl;
return ref.handler->attach(next);
}
ManagedMedia &ref( m_impl->findMM(accessId));
+ DBG << "release(id=" << accessId
+ << (eject ? ", eject)" : ")") << std::endl;
if( eject)
{
//
ManagedMedia &ref( m_impl->findMM(accessId));
- ref.checkDesired();
+ ref.checkDesired(accessId);
ref.handler->provideFile(filename, cached, checkonly);
}
ManagedMedia &ref( m_impl->findMM(accessId));
- ref.checkDesired();
+ ref.checkDesired(accessId);
ref.handler->provideDir(dirname);
}
ManagedMedia &ref( m_impl->findMM(accessId));
- ref.checkDesired();
+ ref.checkDesired(accessId);
ref.handler->provideDirTree(dirname);
}
ManagedMedia &ref( m_impl->findMM(accessId));
- ref.checkAttached();
+ ref.checkAttached(accessId);
ref.handler->releaseFile(filename);
}
ManagedMedia &ref( m_impl->findMM(accessId));
- ref.checkAttached();
+ ref.checkAttached(accessId);
ref.handler->releaseDir(dirname);
}
ManagedMedia &ref( m_impl->findMM(accessId));
- ref.checkAttached();
+ ref.checkAttached(accessId);
ref.handler->releasePath(pathname);
}
ManagedMedia &ref( m_impl->findMM(accessId));
- // FIXME: ref.checkDesired(); ???
- ref.checkAttached();
+ // FIXME: ref.checkDesired(accessId); ???
+ ref.checkAttached(accessId);
ref.handler->dirInfo(retlist, dirname, dots);
}
ManagedMedia &ref( m_impl->findMM(accessId));
- // FIXME: ref.checkDesired(); ???
- ref.checkAttached();
+ // FIXME: ref.checkDesired(accessId); ???
+ ref.checkAttached(accessId);
ref.handler->dirInfo(retlist, dirname, dots);
}