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:
79f37c8
)
return on multiple calls to initTarget()
author
Klaus Kaempf
<kkaempf@suse.de>
Thu, 23 Feb 2006 20:44:31 +0000
(20:44 +0000)
committer
Klaus Kaempf
<kkaempf@suse.de>
Thu, 23 Feb 2006 20:44:31 +0000
(20:44 +0000)
zypp/zypp_detail/ZYppImpl.cc
patch
|
blob
|
history
diff --git
a/zypp/zypp_detail/ZYppImpl.cc
b/zypp/zypp_detail/ZYppImpl.cc
index
89a2071
..
fa8739c
100644
(file)
--- a/
zypp/zypp_detail/ZYppImpl.cc
+++ b/
zypp/zypp_detail/ZYppImpl.cc
@@
-104,8
+104,11
@@
namespace zypp
void ZYppImpl::initTarget(const Pathname & root, bool commit_only)
{
- if (_target)
- _target = Target_Ptr();
+ if (_target) {
+ WAR << "Repeated call to initTarget()" << endl;
+ return;
+ }
+
_target = new Target(root);
if (!commit_only)
{