From: Michael Andres Date: Thu, 2 Aug 2012 09:27:49 +0000 (+0200) Subject: set $ZYPP_IS_RUNNING during commit X-Git-Tag: 12.0.0~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c871a16fdb6ff0d72025238a299444189644baec;p=platform%2Fupstream%2Flibzypp.git set $ZYPP_IS_RUNNING during commit --- diff --git a/zypp/zypp_detail/ZYppImpl.cc b/zypp/zypp_detail/ZYppImpl.cc index 58c753c..7c6589f 100644 --- a/zypp/zypp_detail/ZYppImpl.cc +++ b/zypp/zypp_detail/ZYppImpl.cc @@ -122,6 +122,8 @@ namespace zypp * and target used for transact. */ ZYppCommitResult ZYppImpl::commit( const ZYppCommitPolicy & policy_r ) { + setenv( "ZYPP_IS_RUNNING", str::numstring(getpid()).c_str(), 1 ); + if ( getenv("ZYPP_TESTSUITE_FAKE_ARCH") ) { ZYPP_THROW( Exception("ZYPP_TESTSUITE_FAKE_ARCH set. Commit not allowed and disabled.") );