projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29ab652
)
set $ZYPP_IS_RUNNING during commit
author
Michael Andres
<ma@suse.de>
Thu, 2 Aug 2012 09:27:49 +0000
(11:27 +0200)
committer
Michael Andres
<ma@suse.de>
Thu, 2 Aug 2012 09:51:02 +0000
(11:51 +0200)
zypp/zypp_detail/ZYppImpl.cc
patch
|
blob
|
history
diff --git
a/zypp/zypp_detail/ZYppImpl.cc
b/zypp/zypp_detail/ZYppImpl.cc
index
58c753c
..
7c6589f
100644
(file)
--- 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.") );