License Package::licenseToConfirm() const
{ return pimpl().licenseToConfirm(); }
+ /** */
+ Pathname Package::plainRpm() const
+ { return pimpl().location(); }
+
+ /** */
+ std::list<PatchRpm> Package::patchRpms() const
+ { return pimpl().patchRpms(); }
+
+ /** */
+ std::list<DeltaRpm> Package::deltaRpms() const
+ { return pimpl().deltaRpms(); }
/////////////////////////////////////////////////////////////////
} // namespace zypp
Text filenames() const;
/** */
License licenseToConfirm() const;
+ /** */
+ Pathname plainRpm() const;
+ /** */
+ std::list<PatchRpm> patchRpms() const;
+ /** */
+ std::list<DeltaRpm> deltaRpms() const;
+
// data here:
+
protected:
Package( const NVRAD & nvrad_r );
std::ostream & Source::dumpOn( std::ostream & str ) const
{ return _pimpl->dumpOn( str ); }
+ const Pathname Source::provideFile(const Pathname & file, const unsigned media_nr)
+ { return _pimpl->provideFile(file, media_nr); }
+
+
+
/////////////////////////////////////////////////////////////////
} // namespace zypp
///////////////////////////////////////////////////////////////////
#include "zypp/base/PtrTypes.h"
#include "zypp/ResStore.h"
+#include "zypp/Pathname.h"
///////////////////////////////////////////////////////////////////
namespace zypp
private:
/** Pointer to implementation */
RW_pointer<Impl,rw_pointer::Intrusive<Impl> > _pimpl;
+
+ public:
+ /** Provide a file to local filesystem */
+ const Pathname provideFile(const Pathname & file, const unsigned media_nr = 1);
};
///////////////////////////////////////////////////////////////////
inline std::ostream & operator<<( std::ostream & str, const Source & obj )
{ return obj.dumpOn( str ); }
+
/////////////////////////////////////////////////////////////////
} // namespace zypp
///////////////////////////////////////////////////////////////////
Changelog PackageImplIf::changelog() const
{ return Changelog(); }
+ Pathname PackageImplIf::location() const
+ { return Pathname(); }
+
std::string PackageImplIf::url() const
{ return std::string(); }
License PackageImplIf::licenseToConfirm() const
{ return License(); }
+ std::list<DeltaRpm> PackageImplIf::deltaRpms() const
+ { return std::list<DeltaRpm>(); }
+
+ std::list<PatchRpm> PackageImplIf::patchRpms() const
+ { return std::list<PatchRpm>(); }
+
+
/////////////////////////////////////////////////////////////////
} // namespace detail
///////////////////////////////////////////////////////////////////
#include "zypp/Edition.h"
#include "zypp/Arch.h"
#include "zypp/Changelog.h"
+#include "zypp/PatchRpm.h"
+#include "zypp/DeltaRpm.h"
///////////////////////////////////////////////////////////////////
namespace zypp
virtual PackageGroup group() const PURE_VIRTUAL;
/** */
virtual Changelog changelog() const PURE_VIRTUAL;
+ /** */
+ virtual Pathname location() const PURE_VIRTUAL;
/** Don't ship it as class Url, because it might be
* in fact anything but a legal Url. */
virtual std::string url() const PURE_VIRTUAL;
virtual Text authors() const PURE_VIRTUAL;
/** */
virtual Text filenames() const PURE_VIRTUAL;
+ /** */
+ virtual std::list<DeltaRpm> deltaRpms() const PURE_VIRTUAL;
+ /** */
+ virtual std::list<PatchRpm> patchRpms() const PURE_VIRTUAL;
+
//@}
/** \name Additional Package Attributes.
SourceImpl::~SourceImpl()
{}
- const Pathname SourceImpl::provideFile(const Pathname & file_r)
+ const Pathname SourceImpl::provideFile(const Pathname & file_r, const unsigned media_nr)
{
_media->provideFile (file_r);
return _media->localPath (file_r);
{ return _store; }
/** Provide a file to local filesystem */
- const Pathname provideFile(const Pathname & file);
+ const Pathname provideFile(const Pathname & file, const unsigned media_nr = 1);
/** Overload to realize stream output. */
virtual std::ostream & dumpOn( std::ostream & str ) const
Changelog YUMPackageImpl::changelog() const
{ return _changelog; }
+ /** */
+ Pathname YUMPackageImpl::location() const
+ { return _location; }
+
/** Don't ship it as class Url, because it might be
* in fact anything but a legal Url. */
std::string YUMPackageImpl::url() const
virtual PackageGroup group() const;
/** */
virtual Changelog changelog() const;
+ /** */
+ virtual Pathname location() const;
/** Don't ship it as class Url, because it might be
* in fact anything but a legal Url. */
virtual std::string url() const;
/** */
virtual std::list<std::string> suggests() const;
/** */
- virtual std::string location() const;
- /** */
virtual unsigned int medianr() const;
/** */
virtual std::string md5sum() const;
unsigned _mediaid;
CheckSum _checksum;
Text _filenames;
- std::string _location;
+ Pathname _location;
std::list<DeltaRpm> _delta_rpms;
std::list<PatchRpm> _patch_rpms;