ref: refs/heads/master
commit f6ff0f8b8da87be46ce59e3803c8dcfa2aec2c8a
Author: Michael Andres
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@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org