return status;
}
+ void RepoStatus::saveToCookieFile( const Pathname &cookiefile )
+ {
+ std::ofstream file(cookiefile.c_str());
+ if (!file) {
+ ZYPP_THROW (Exception( "Can't open " + cookiefile.asString() ) );
+ }
+ file << *(this);
+ file.close();
+ }
+
RepoStatus::RepoStatus( const Pathname &path )
: _pimpl( new Impl() )
{
static RepoStatus fromCookieFile( const Pathname &path );
/**
+ * save the status information to a cookie file
+ * \throws Exception if the file can't be saved
+ */
+ void saveToCookieFile( const Pathname &path );
+
+ /**
* Checksum of the repository.
* Usually the checksum of the index, but any
* checksum that changes when the repository changes