- appendStringContainerAttribute() added to CacheStore
[platform/upstream/libzypp.git] / zypp / ZConfig.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/ZConfig.cc
10  *
11 */
12 #include <iostream>
13 #include "zypp/base/Logger.h"
14
15 #include "zypp/ZConfig.h"
16 #include "zypp/ZYppFactory.h"
17
18 using std::endl;
19
20 ///////////////////////////////////////////////////////////////////
21 namespace zypp
22 { /////////////////////////////////////////////////////////////////
23
24   ///////////////////////////////////////////////////////////////////
25   //
26   //    METHOD NAME : ZConfig::systemArchitecture
27   //    METHOD TYPE : Arch
28   //
29   Arch ZConfig::systemArchitecture() const
30   {
31     return getZYpp()->architecture();
32   }
33
34   ///////////////////////////////////////////////////////////////////
35   //
36   //    METHOD NAME : ZConfig::defaultTextLocale
37   //    METHOD TYPE : Locale
38   //
39   Locale ZConfig::defaultTextLocale() const
40   {
41     return getZYpp()->getTextLocale();
42   }
43
44   Pathname ZConfig::defaultRepoRawCachePath() const
45   {
46     return Pathname("/var/lib/zypp/cache/raw");
47   }
48       
49   Pathname ZConfig::defaultRepoCachePath() const
50   {
51     return Pathname("/var/lib/zypp/cache");
52   }
53   
54   Pathname ZConfig::defaultKnownReposPath() const
55   {
56     return Pathname("/etc/zypp/repos.d");
57   }
58   
59   const std::string & ZConfig::cacheDBSplitJoinSeparator() const
60   {
61     static std::string s("!@$");
62     return s;
63   }
64
65   /////////////////////////////////////////////////////////////////
66 } // namespace zypp
67 ///////////////////////////////////////////////////////////////////