9 #ifndef ZYPP_NG_MEDIASETFACADE_INCLUDED 10 #define ZYPP_NG_MEDIASETFACADE_INCLUDED 16 #include <zypp-media/ng/LazyMediaHandle> 37 const std::optional<zypp::Pathname> &
localPath()
const;
72 Disabled
for now so we hit
a compile error, since we currently have no way
to get those values from the old media backend.
140 return [ providerRef=std::move(provider), targetPath = targetPath ](
Res &&file ){
142 return providerRef->copyFile( std::move(file), targetPath );
int assert_dir(const Pathname &path, unsigned mode)
Like 'mkdir -p'.
const zypp::ManagedFile & asManagedFile() const
#define ZYPP_ADD_CREATE_FUNC(Class)
std::vector< AttachedMediaInfo_Ptr > _attachedMedia
ProvideRes(ProvideMediaHandle hdl, zypp::ManagedFile file)
const ProvideMediaHandle & mediaHandle() const
const HeaderValueMap & headers() const
DEFINE_PTR_TYPE(AttachedMediaInfo)
Manages a data source characterized by an authoritative URL and a list of mirror URLs.
Container to(Range &&range)
Convert any range into a Container.
Pathname dirname() const
Return all but the last component od this path.
#define ZYPP_DECL_PRIVATE_CONSTR(Class)
ZYPP_FWD_DECL_TYPE_WITH_REFS(EventDispatcher)
ProvideMediaHandle _provideHandle
bool provide(const Pathname &delta_r, const Pathname &new_r, const Progress &report_r)
Apply a binary delta to on-disk data to re-create a new rpm.
static auto copyResultToDest(ProvideRef provider, const zypp::Pathname &targetPath)
const zypp::Pathname file() const