report non packages as keep installed if satisfied to the
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 13 May 2008 15:38:38 +0000 (15:38 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 13 May 2008 15:38:38 +0000 (15:38 +0000)
user interace (Selectables)

VERSION.cmake
zypp/ui/SelectableImpl.cc

index 5fb8f44..4e9b345 100644 (file)
@@ -47,4 +47,4 @@
 SET(LIBZYPP_MAJOR "4")
 SET(LIBZYPP_MINOR "21")
 SET(LIBZYPP_COMPATMINOR "21")
-SET(LIBZYPP_PATCH "2")
+SET(LIBZYPP_PATCH "3")
index f42cad8..c297b96 100644 (file)
@@ -183,6 +183,12 @@ namespace zypp
       if ( !installedObj() && allCandidatesLocked() )
          return S_Taboo;
 
+      // non packages are handled differently
+      if ( ! isKind<Package>(cand.resolvable()) )
+      {
+          return( cand.status().isSatisfied() ? S_KeepInstalled : S_NoInst );
+      }
+
       return( installedObj() ? S_KeepInstalled : S_NoInst );
     }