* checkPackage result
* @see checkPackage
* */
- enum CheckPackageResult
+ enum checkPackageResult
{
CHK_OK = 0, /*!< Signature is OK. */
CHK_NOTFOUND = 1, /*!< Signature is unknown type. */
CHK_ERROR = 5 /*!< File does not exist or can't be opened. */
};
- /** Detailed rpm signature check log messages
- * A single multiline message if \ref CHK_OK. Otherwise each message line
- * together with it's \ref CheckPackageResult.
- */
- struct CheckPackageDetail : std::vector<std::pair<CheckPackageResult,std::string>>
- {};
-
/**
* Check signature of rpm file on disk.
*
- * @param path_r which file to check
- * @param detail_r Return detailed rpm log messages
+ * @param filename which file to check
*
- * @return CheckPackageResult
+ * @return checkPackageResult
*/
- CheckPackageResult checkPackage( const Pathname & path_r, CheckPackageDetail & detail_r );
- /** \overload Ignoring the \a datails_r */
- CheckPackageResult checkPackage( const Pathname & path_r );
+ checkPackageResult checkPackage( const Pathname & path_r );
/** install rpm package
*
void doRebuildDatabase(callback::SendReport<RebuildDBReport> & report);
};
-/** \relates RpmDb::CheckPackageResult Stream output */
-std::ostream & operator<<( std::ostream & str, RpmDb::CheckPackageResult obj );
-
-/** \relates RpmDb::checkPackageDetail Stream output */
-std::ostream & operator<<( std::ostream & str, const RpmDb::CheckPackageDetail & obj );
-
} // namespace rpm
} // namespace target
} // namespace zypp