Mailinglist Archive: zypp-commit (325 mails)

< Previous Next >
[zypp-commit] r7260 - /branches/SuSE-Linux-10_2-Branch/zypper/src/zypper.cc
  • From: jkupec@xxxxxxxxxxxxxxxx
  • Date: Mon, 17 Sep 2007 11:46:53 -0000
  • Message-id: <20070917114653.B00D8174C9@xxxxxxxxxxxxxxxx>
Author: jkupec
Date: Mon Sep 17 13:46:53 2007
New Revision: 7260

URL: http://svn.opensuse.org/viewcvs/zypp?rev=7260&view=rev
Log:
- ignore the ZYpp lock if ZYPP_READONLY_HACK=1 env. var. is set
  (#310581)

Modified:
    branches/SuSE-Linux-10_2-Branch/zypper/src/zypper.cc

Modified: branches/SuSE-Linux-10_2-Branch/zypper/src/zypper.cc
URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-10_2-Branch/zypper/src/zypper.cc?rev=7260&r1=7259&r2=7260&view=diff
==============================================================================
--- branches/SuSE-Linux-10_2-Branch/zypper/src/zypper.cc (original)
+++ branches/SuSE-Linux-10_2-Branch/zypper/src/zypper.cc Mon Sep 17 13:46:53 2007
@@ -544,7 +544,10 @@
   
   // here come commands that need the lock
   try {
-    if (command == "service-list" || command == "sl")
+    const char *roh = getenv("ZYPP_READONLY_HACK");
+    if (roh != NULL && roh[0] == '1')
+      zypp_readonly_hack::IWantIt ();
+    else if (command == "service-list" || command == "sl")
       zypp_readonly_hack::IWantIt (); // #247001
 
     God = zypp::getZYpp();

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

< Previous Next >
This Thread
  • No further messages