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@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org