projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62310e2
)
Add Selectable::locked (short for TABOO||PROTECED)
author
Michael Andres
<ma@suse.de>
Wed, 4 Nov 2009 15:32:09 +0000
(16:32 +0100)
committer
Michael Andres
<ma@suse.de>
Wed, 4 Nov 2009 15:46:00 +0000
(16:46 +0100)
zypp/ui/Selectable.h
patch
|
blob
|
history
diff --git
a/zypp/ui/Selectable.h
b/zypp/ui/Selectable.h
index
0331cab
..
ac32377
100644
(file)
--- 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; }