Mailinglist Archive: zypp-commit (233 mails)

< Previous Next >
[zypp-commit] <libzypp> master : Add Selectable::locked (short for TABOO||PROTECED)
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Wed, 4 Nov 2009 16:46:00 +0100
  • Message-id: <E1N6WCS-0006AB-Ts@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit f6ff0f8b8da87be46ce59e3803c8dcfa2aec2c8a
Author: Michael Andres <ma@xxxxxxx>
Date: Wed Nov 4 16:32:09 2009 +0100

Add Selectable::locked (short for TABOO||PROTECED)
---
zypp/ui/Selectable.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/zypp/ui/Selectable.h b/zypp/ui/Selectable.h
index 0331cab..ac32377 100644
--- a/zypp/ui/Selectable.h
+++ b/zypp/ui/Selectable.h
@@ -313,6 +313,10 @@ namespace zypp
bool unmodified() const
{ return fate() == UNMODIFIED; }

+ /** True if locked (subclass of unmodified). */
+ bool locked() const
+ { Status st( status() ); return( st == S_Protected || st == S_Taboo ); }
+
/** True if either to delete or to install */
bool toModify() const
{ return fate() != UNMODIFIED; }
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages