Mailinglist Archive: zypp-commit (223 mails)

< Previous Next >
[zypp-commit] r10540 - in /trunk/libzypp: zypp.conf zypp/ZConfig.cc zypp/ZConfig.h
  • From: schubi2@xxxxxxxxxxxxxxxx
  • Date: Fri, 11 Jul 2008 12:42:56 -0000
  • Message-id: <20080711124256.CE00E24B2F@xxxxxxxxxxxxxxxx>
Author: schubi2
Date: Fri Jul 11 14:42:56 2008
New Revision: 10540

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10540&view=rev
Log:
Added new configuration file "checkSystemFile" which contains
dependencies which has to be fulfilled for an running system

Modified:
trunk/libzypp/zypp.conf
trunk/libzypp/zypp/ZConfig.cc
trunk/libzypp/zypp/ZConfig.h

Modified: trunk/libzypp/zypp.conf
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp.conf?rev=10540&r1=10539&r2=10540&view=diff
==============================================================================
--- trunk/libzypp/zypp.conf (original)
+++ trunk/libzypp/zypp.conf Fri Jul 11 14:42:56 2008
@@ -180,6 +180,20 @@
# 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.
##

Modified: trunk/libzypp/zypp/ZConfig.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ZConfig.cc?rev=10540&r1=10539&r2=10540&view=diff
==============================================================================
--- trunk/libzypp/zypp/ZConfig.cc (original)
+++ trunk/libzypp/zypp/ZConfig.cc Fri Jul 11 14:42:56 2008
@@ -245,6 +245,10 @@
{
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 @@
bool download_use_deltarpm;

bool solver_onlyRequires;
+ Pathname solver_checkSystemFile;

bool apply_locks_file;

@@ -499,6 +504,10 @@
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;

Modified: trunk/libzypp/zypp/ZConfig.h
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ZConfig.h?rev=10540&r1=10539&r2=10540&view=diff
==============================================================================
--- trunk/libzypp/zypp/ZConfig.h (original)
+++ trunk/libzypp/zypp/ZConfig.h Fri Jul 11 14:42:56 2008
@@ -175,6 +175,12 @@
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
*/

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages