Added new configuration file "checkSystemFile" which contains
authorStefan Schubert <schubi@suse.de>
Fri, 11 Jul 2008 12:42:56 +0000 (12:42 +0000)
committerStefan Schubert <schubi@suse.de>
Fri, 11 Jul 2008 12:42:56 +0000 (12:42 +0000)
dependencies which has to be fulfilled for an running system

zypp.conf
zypp/ZConfig.cc
zypp/ZConfig.h

index d66b4431489b44dc60520a64a60974bb631a8c27..d0280cfd161b7837caea4ced8614a0ad5c0103aa 100644 (file)
--- a/zypp.conf
+++ b/zypp.conf
 ##
 # solver.onlyRequires = false
 
+##
+## This file contains requirements/conflicts which fulfill the 
+## needs of a running system.
+## For example the system would be broken if not glibc or kernel is
+## installed. 
+## So the user will be informed if these packages will be deleted.
+## 
+## format: Each line represents one dependency:
+## e.g.
+## requires:kernel
+## requires:glibc
+##
+# solver.checkSystemFile = /etc/zypp/systemCheck
+
 ##
 ## Path to locks file. If not exist then is create.
 ## In this file is saved also UI locks.
index 8f7022ae404c4a18fa3c41962e441cbe12dbca07..1d819f490b101a432f7133e4a8bcff2c30314da5 100644 (file)
@@ -245,6 +245,10 @@ namespace zypp
                 {
                   solver_onlyRequires = str::strToBool( value, solver_onlyRequires );
                 }
+                else if ( entry == "solver.checkSystemFile" )
+                {
+                  solver_checkSystemFile = Pathname(value);
+                }              
                 else if ( entry == "locksfile.path" )
                 {
                   locks_file = Pathname(value);
@@ -320,6 +324,7 @@ namespace zypp
     bool download_use_deltarpm;
 
     bool solver_onlyRequires;
+    Pathname solver_checkSystemFile;  
 
     bool apply_locks_file;
 
@@ -499,6 +504,10 @@ namespace zypp
   bool ZConfig::solver_onlyRequires() const
   { return _pimpl->solver_onlyRequires; }
 
+  Pathname ZConfig::solver_checkSystemFile() const
+  { return _pimpl->solver_checkSystemFile; }
+    
+
   bool ZConfig::apply_locks_file() const
   {
     return _pimpl->apply_locks_file;
index b6cc467b62d9160a4e4f6627416b52206badbac4..5f1d5acb2a0f3a3518b14e1a77e68908e843ebf8 100644 (file)
@@ -174,6 +174,12 @@ namespace zypp
        */
       bool solver_onlyRequires() const;
 
+      /**
+       * File in which dependencies described which has to be
+       * fulfilled for a running system.
+       */
+      Pathname solver_checkSystemFile() const;
+
       /**
        * Path where zypp can find or create lock file (configPath()/locks)
        * \ingroup g_ZC_CONFIGFILES