set $ZYPP_IS_RUNNING during commit
authorMichael Andres <ma@suse.de>
Thu, 2 Aug 2012 09:27:49 +0000 (11:27 +0200)
committerMichael Andres <ma@suse.de>
Thu, 2 Aug 2012 09:51:02 +0000 (11:51 +0200)
zypp/zypp_detail/ZYppImpl.cc

index 58c753c..7c6589f 100644 (file)
@@ -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.") );