SET(LIBZYPP_MAJOR "4")
SET(LIBZYPP_MINOR "14")
-SET(LIBZYPP_COMPATMINOR "14")
SET(LIBZYPP_PATCH "0")
std::string Patch::category() const
{ return lookupStrAttribute( sat::SolvAttr::patchcategory ); }
- bool Patch::reboot_needed() const
- { return lookupBoolAttribute( sat::SolvAttr::needReboot ); }
+ bool Patch::rebootSuggested() const
+ { return lookupBoolAttribute( sat::SolvAttr::rebootSuggested ); }
- bool Patch::affects_pkg_manager() const
- { return lookupBoolAttribute( sat::SolvAttr::needRestart ); }
+ bool Patch::restartSuggested() const
+ { return lookupBoolAttribute( sat::SolvAttr::restartSuggested ); }
bool Patch::interactive() const
{
- if ( reboot_needed()
+ if ( rebootSuggested()
|| ! licenseToConfirm().empty() )
{
return true;
public:
/**
- * issue date time
+ * Issue date time. For now it is the same as
+ * \ref buildtime().
*/
Date timestamp() const
{ return buildtime(); }
/**
* Does the system need to reboot to finish the update process?
*/
- bool reboot_needed() const;
-
+ bool rebootSuggested() const;
+
/**
* Does the patch affect the package manager itself?
+ * restart is suggested then
+ */
+ bool restartSuggested() const;
+
+ /**
+ * Use \ref rebootSuggested()
+ */
+ ZYPP_DEPRECATED bool reboot_needed() const
+ { return rebootSuggested(); }
+
+ /**
+ * Use \ref restartSuggested()
*/
- bool affects_pkg_manager() const;
+ ZYPP_DEPRECATED bool affects_pkg_manager() const
+ { return restartSuggested(); }
/**
* Is the patch installation interactive? (does it need user input?)
const SolvAttr SolvAttr::headerend ( SOLVABLE_HEADEREND );
// patch
- const SolvAttr SolvAttr::patchcategory( SOLVABLE_PATCHCATEGORY );
- const SolvAttr SolvAttr::needReboot ( UPDATE_REBOOT );
- const SolvAttr SolvAttr::needRestart ( UPDATE_RESTART );
+ const SolvAttr SolvAttr::patchcategory ( SOLVABLE_PATCHCATEGORY );
+ const SolvAttr SolvAttr::rebootSuggested ( UPDATE_REBOOT );
+ const SolvAttr SolvAttr::restartSuggested ( UPDATE_RESTART );
const SolvAttr SolvAttr::updateCollectionName ( UPDATE_COLLECTION_NAME );
const SolvAttr SolvAttr::updateCollectionEvr ( UPDATE_COLLECTION_EVR );
const SolvAttr SolvAttr::updateCollectionArch ( UPDATE_COLLECTION_ARCH );
// patch
static const SolvAttr patchcategory;
- static const SolvAttr needReboot;
- static const SolvAttr needRestart;
+ static const SolvAttr rebootSuggested;
+ static const SolvAttr restartSuggested;
static const SolvAttr updateCollectionName;
static const SolvAttr updateCollectionEvr;
static const SolvAttr updateCollectionArch;