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:
7d3ad76
)
Provide the target root via ZConfig::systemRoot.
author
Michael Andres
<ma@suse.de>
Fri, 4 Sep 2009 10:15:47 +0000
(12:15 +0200)
committer
Michael Andres
<ma@suse.de>
Fri, 4 Sep 2009 10:15:47 +0000
(12:15 +0200)
zypp/ZConfig.cc
patch
|
blob
|
history
zypp/ZConfig.h
patch
|
blob
|
history
diff --git
a/zypp/ZConfig.cc
b/zypp/ZConfig.cc
index
8a2cebe
..
299ee31
100644
(file)
--- a/
zypp/ZConfig.cc
+++ b/
zypp/ZConfig.cc
@@
-499,6
+499,12
@@
namespace zypp
ZConfig::~ZConfig( )
{}
+ Pathname ZConfig::systemRoot() const
+ {
+ Target_Ptr target( getZYpp()->getTarget() );
+ return target ? target->root() : Pathname();
+ }
+
///////////////////////////////////////////////////////////////////
//
// system architecture
diff --git
a/zypp/ZConfig.h
b/zypp/ZConfig.h
index
c5bb921
..
a2f4e11
100644
(file)
--- a/
zypp/ZConfig.h
+++ b/
zypp/ZConfig.h
@@
-65,6
+65,11
@@
namespace zypp
public:
+ /** The target root directory. */
+ Pathname systemRoot() const;
+
+ public:
+
/** The autodetected system architecture. */
static Arch defaultSystemArchitecture();