1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/ZConfig.cc
14 #include <sys/utsname.h>
16 #include <satsolver/satversion.h>
20 #include "zypp/base/Logger.h"
21 #include "zypp/base/IOStream.h"
22 #include "zypp/base/InputStream.h"
23 #include "zypp/base/String.h"
25 #include "zypp/ZConfig.h"
26 #include "zypp/ZYppFactory.h"
27 #include "zypp/PathInfo.h"
28 #include "zypp/parser/IniDict.h"
30 #include "zypp/sat/Pool.h"
33 using namespace zypp::filesystem;
34 using namespace zypp::parser;
36 #undef ZYPP_BASE_LOGGER_LOGGROUP
37 #define ZYPP_BASE_LOGGER_LOGGROUP "zconfig"
39 ///////////////////////////////////////////////////////////////////
41 { /////////////////////////////////////////////////////////////////
43 ///////////////////////////////////////////////////////////////////
45 { /////////////////////////////////////////////////////////////////
47 /** Determine system architecture evaluating \c uname and \c /proc/cpuinfo.
49 Arch _autodetectSystemArchitecture()
52 if ( ::uname( &buf ) < 0 )
54 ERR << "Can't determine system architecture" << endl;
58 Arch architecture( buf.machine );
59 MIL << "Uname architecture is '" << buf.machine << "'" << endl;
61 if ( architecture == Arch_i686 )
63 // some CPUs report i686 but dont implement cx8 and cmov
64 // check for both flags in /proc/cpuinfo and downgrade
65 // to i586 if either is missing (cf bug #18885)
66 std::ifstream cpuinfo( "/proc/cpuinfo" );
69 for( iostr::EachLine in( cpuinfo ); in; in.next() )
71 if ( str::hasPrefix( *in, "flags" ) )
73 if ( in->find( "cx8" ) == std::string::npos
74 || in->find( "cmov" ) == std::string::npos )
76 architecture = Arch_i586;
77 WAR << "CPU lacks 'cx8' or 'cmov': architecture downgraded to '" << architecture << "'" << endl;
85 ERR << "Cant open " << PathInfo("/proc/cpuinfo") << endl;
88 else if ( architecture == Arch_sparc || architecture == Arch_sparc64 )
90 // Check for sun4[vum] to get the real arch. (bug #566291)
91 std::ifstream cpuinfo( "/proc/cpuinfo" );
94 for( iostr::EachLine in( cpuinfo ); in; in.next() )
96 if ( str::hasPrefix( *in, "type" ) )
98 if ( in->find( "sun4v" ) != std::string::npos )
100 architecture = ( architecture == Arch_sparc64 ? Arch_sparc64v : Arch_sparcv9v );
101 WAR << "CPU has 'sun4v': architecture upgraded to '" << architecture << "'" << endl;
103 else if ( in->find( "sun4u" ) != std::string::npos )
105 architecture = ( architecture == Arch_sparc64 ? Arch_sparc64 : Arch_sparcv9 );
106 WAR << "CPU has 'sun4u': architecture upgraded to '" << architecture << "'" << endl;
108 else if ( in->find( "sun4m" ) != std::string::npos )
110 architecture = Arch_sparcv8;
111 WAR << "CPU has 'sun4m': architecture upgraded to '" << architecture << "'" << endl;
119 ERR << "Cant open " << PathInfo("/proc/cpuinfo") << endl;
125 /** The locale to be used for texts and messages.
127 * For the encoding to be used the preference is
129 * LC_ALL, LC_CTYPE, LANG
131 * For the language of the messages to be used, the preference is
133 * LANGUAGE, LC_ALL, LC_MESSAGES, LANG
135 * Note that LANGUAGE can contain more than one locale name, it can be
136 * a list of locale names like for example
138 * LANGUAGE=ja_JP.UTF-8:de_DE.UTF-8:fr_FR.UTF-8
140 * \todo Support dynamic fallbacklists defined by LANGUAGE
142 Locale _autodetectTextLocale()
145 const char * envlist[] = { "LC_ALL", "LC_MESSAGES", "LANG", NULL };
146 for ( const char ** envvar = envlist; *envvar; ++envvar )
148 const char * envlang = getenv( *envvar );
151 std::string envstr( envlang );
152 if ( envstr != "POSIX" && envstr != "C" )
154 Locale lang( envstr );
155 if ( ! lang.code().empty() )
157 MIL << "Found " << *envvar << "=" << envstr << endl;
164 MIL << "Default text locale is '" << ret << "'" << endl;
165 #warning HACK AROUND BOOST_TEST_CATCH_SYSTEM_ERRORS
166 setenv( "BOOST_TEST_CATCH_SYSTEM_ERRORS", "no", 1 );
170 /////////////////////////////////////////////////////////////////
172 ///////////////////////////////////////////////////////////////////
174 /** Mutable option. */
178 typedef _Tp value_type;
180 /** No default ctor, explicit initialisation! */
181 Option( const value_type & initial_r )
185 /** Get the value. */
186 const value_type & get() const
189 /** Autoconversion to value_type. */
190 operator const value_type &() const
193 /** Set a new value. */
194 void set( const value_type & newval_r )
197 /** Non-const reference to set a new value. */
205 /** Mutable option with initial value also remembering a config value. */
207 struct DefaultOption : public Option<_Tp>
209 typedef _Tp value_type;
210 typedef Option<_Tp> option_type;
212 DefaultOption( const value_type & initial_r )
213 : Option<_Tp>( initial_r ), _default( initial_r )
216 /** Reset value to the current default. */
217 void restoreToDefault()
218 { this->set( _default.get() ); }
220 /** Reset value to a new default. */
221 void restoreToDefault( const value_type & newval_r )
222 { setDefault( newval_r ); restoreToDefault(); }
224 /** Get the current default value. */
225 const value_type & getDefault() const
226 { return _default.get(); }
228 /** Set a new default value. */
229 void setDefault( const value_type & newval_r )
230 { _default.set( newval_r ); }
233 option_type _default;
236 ///////////////////////////////////////////////////////////////////
238 // CLASS NAME : ZConfig::Impl
240 /** ZConfig implementation.
241 * \todo Enrich section and entry definition by some comment
242 * (including the default setting and provide some method to
243 * write this into a sample zypp.conf.
248 Impl( const Pathname & override_r = Pathname() )
249 : _parsedZyppConf ( override_r )
250 , cfg_arch ( defaultSystemArchitecture() )
251 , cfg_textLocale ( defaultTextLocale() )
252 , updateMessagesNotify ( "single | /usr/lib/zypp/notify-message -p %p" )
253 , repo_add_probe ( false )
254 , repo_refresh_delay ( 10 )
255 , repoLabelIsAlias ( false )
256 , download_use_deltarpm ( true )
257 , download_use_deltarpm_always ( false )
258 , download_media_prefer_download( true )
259 , download_max_concurrent_connections( 2 )
260 , download_min_download_speed ( 0 )
261 , download_max_download_speed ( 0 )
262 , download_max_silent_tries ( 5 )
263 , commit_downloadMode ( DownloadDefault )
264 , solver_onlyRequires ( false )
265 , solver_allowVendorChange ( false )
266 , solver_cleandepsOnRemove ( false )
267 , solver_upgradeTestcasesToKeep ( 2 )
268 , solverUpgradeRemoveDroppedPackages( true )
269 , apply_locks_file ( true )
272 MIL << "libzypp: " << VERSION << " built " << __DATE__ << " " << __TIME__ << endl;
273 // override_r has higest prio
274 // ZYPP_CONF might override /etc/zypp/zypp.conf
275 if ( _parsedZyppConf.empty() )
277 const char *env_confpath = getenv( "ZYPP_CONF" );
278 _parsedZyppConf = env_confpath ? env_confpath : "/etc/zypp/zypp.conf";
282 // Inject this into ZConfig. Be shure this is
283 // allocated via new. See: reconfigureZConfig
284 INT << "Reconfigure to " << _parsedZyppConf << endl;
285 ZConfig::instance()._pimpl.reset( this );
287 if ( PathInfo(_parsedZyppConf).isExist() )
289 parser::IniDict dict( _parsedZyppConf );
290 for ( IniDict::section_const_iterator sit = dict.sectionsBegin();
291 sit != dict.sectionsEnd();
294 string section(*sit);
295 //MIL << section << endl;
296 for ( IniDict::entry_const_iterator it = dict.entriesBegin(*sit);
297 it != dict.entriesEnd(*sit);
300 string entry(it->first);
301 string value(it->second);
302 //DBG << (*it).first << "=" << (*it).second << endl;
303 if ( section == "main" )
305 if ( entry == "arch" )
308 if ( carch != cfg_arch )
310 WAR << "Overriding system architecture (" << cfg_arch << "): " << carch << endl;
314 else if ( entry == "cachedir" )
316 cfg_cache_path = Pathname(value);
318 else if ( entry == "metadatadir" )
320 cfg_metadata_path = Pathname(value);
322 else if ( entry == "solvfilesdir" )
324 cfg_solvfiles_path = Pathname(value);
326 else if ( entry == "packagesdir" )
328 cfg_packages_path = Pathname(value);
330 else if ( entry == "configdir" )
332 cfg_config_path = Pathname(value);
334 else if ( entry == "reposdir" )
336 cfg_known_repos_path = Pathname(value);
338 else if ( entry == "servicesdir" )
340 cfg_known_services_path = Pathname(value);
342 else if ( entry == "pluginservicesdir" )
344 cfg_plugin_services_path = Pathname(value);
346 else if ( entry == "repo.add.probe" )
348 repo_add_probe = str::strToBool( value, repo_add_probe );
350 else if ( entry == "repo.refresh.delay" )
352 str::strtonum(value, repo_refresh_delay);
354 else if ( entry == "download.use_deltarpm" )
356 download_use_deltarpm = str::strToBool( value, download_use_deltarpm );
358 else if ( entry == "download.use_deltarpm.always" )
360 download_use_deltarpm_always = str::strToBool( value, download_use_deltarpm_always );
362 else if ( entry == "download.media_preference" )
364 download_media_prefer_download.restoreToDefault( str::compareCI( value, "volatile" ) != 0 );
366 else if ( entry == "download.max_concurrent_connections" )
368 str::strtonum(value, download_max_concurrent_connections);
370 else if ( entry == "download.min_download_speed" )
372 str::strtonum(value, download_min_download_speed);
374 else if ( entry == "download.max_download_speed" )
376 str::strtonum(value, download_max_download_speed);
378 else if ( entry == "download.max_silent_tries" )
380 str::strtonum(value, download_max_silent_tries);
382 else if ( entry == "commit.downloadMode" )
384 commit_downloadMode.set( deserializeDownloadMode( value ) );
386 else if ( entry == "vendordir" )
388 cfg_vendor_path = Pathname(value);
390 else if ( entry == "solver.onlyRequires" )
392 solver_onlyRequires.set( str::strToBool( value, solver_onlyRequires ) );
394 else if ( entry == "solver.allowVendorChange" )
396 solver_allowVendorChange.set( str::strToBool( value, solver_allowVendorChange ) );
398 else if ( entry == "solver.cleandepsOnRemove" )
400 solver_cleandepsOnRemove.set( str::strToBool( value, solver_cleandepsOnRemove ) );
402 else if ( entry == "solver.upgradeTestcasesToKeep" )
404 solver_upgradeTestcasesToKeep.set( str::strtonum<unsigned>( value ) );
406 else if ( entry == "solver.upgradeRemoveDroppedPackages" )
408 solverUpgradeRemoveDroppedPackages.restoreToDefault( str::strToBool( value, solverUpgradeRemoveDroppedPackages.getDefault() ) );
410 else if ( entry == "solver.checkSystemFile" )
412 solver_checkSystemFile = Pathname(value);
414 else if ( entry == "multiversion" )
416 str::split( value, inserter( multiversion, multiversion.end() ), ", \t" );
418 else if ( entry == "locksfile.path" )
420 locks_file = Pathname(value);
422 else if ( entry == "locksfile.apply" )
424 apply_locks_file = str::strToBool( value, apply_locks_file );
426 else if ( entry == "update.datadir" )
428 update_data_path = Pathname(value);
430 else if ( entry == "update.scriptsdir" )
432 update_scripts_path = Pathname(value);
434 else if ( entry == "update.messagessdir" )
436 update_messages_path = Pathname(value);
438 else if ( entry == "update.messages.notify" )
440 updateMessagesNotify.set( value );
442 else if ( entry == "rpm.install.excludedocs" )
444 rpmInstallFlags.setFlag( target::rpm::RPMINST_EXCLUDEDOCS,
445 str::strToBool( value, false ) );
447 else if ( entry == "history.logfile" )
449 history_log_path = Pathname(value);
451 else if ( entry == "credentials.global.dir" )
453 credentials_global_dir_path = Pathname(value);
455 else if ( entry == "credentials.global.file" )
457 credentials_global_file_path = Pathname(value);
465 MIL << _parsedZyppConf << " not found, using defaults instead." << endl;
466 _parsedZyppConf = _parsedZyppConf.extend( " (NOT FOUND)" );
470 if ( getenv( "ZYPP_TESTSUITE_FAKE_ARCH" ) )
472 Arch carch( getenv( "ZYPP_TESTSUITE_FAKE_ARCH" ) );
473 if ( carch != cfg_arch )
475 WAR << "ZYPP_TESTSUITE_FAKE_ARCH: Overriding system architecture (" << cfg_arch << "): " << carch << endl;
479 MIL << "ZConfig singleton created." << endl;
486 /** Remember any parsed zypp.conf. */
487 Pathname _parsedZyppConf;
490 Locale cfg_textLocale;
492 Pathname cfg_cache_path;
493 Pathname cfg_metadata_path;
494 Pathname cfg_solvfiles_path;
495 Pathname cfg_packages_path;
497 Pathname cfg_config_path;
498 Pathname cfg_known_repos_path;
499 Pathname cfg_known_services_path;
500 Pathname cfg_plugin_services_path;
502 Pathname cfg_vendor_path;
505 Pathname update_data_path;
506 Pathname update_scripts_path;
507 Pathname update_messages_path;
508 DefaultOption<std::string> updateMessagesNotify;
511 unsigned repo_refresh_delay;
512 bool repoLabelIsAlias;
514 bool download_use_deltarpm;
515 bool download_use_deltarpm_always;
516 DefaultOption<bool> download_media_prefer_download;
518 int download_max_concurrent_connections;
519 int download_min_download_speed;
520 int download_max_download_speed;
521 int download_max_silent_tries;
523 Option<DownloadMode> commit_downloadMode;
525 Option<bool> solver_onlyRequires;
526 Option<bool> solver_allowVendorChange;
527 Option<bool> solver_cleandepsOnRemove;
528 Option<unsigned> solver_upgradeTestcasesToKeep;
529 DefaultOption<bool> solverUpgradeRemoveDroppedPackages;
531 Pathname solver_checkSystemFile;
533 std::set<std::string> multiversion;
535 bool apply_locks_file;
537 target::rpm::RpmInstFlags rpmInstallFlags;
539 Pathname history_log_path;
540 Pathname credentials_global_dir_path;
541 Pathname credentials_global_file_path;
543 ///////////////////////////////////////////////////////////////////
545 // Backdoor to redirect ZConfig from within the running
546 // TEST-application. HANDLE WITH CARE!
547 void reconfigureZConfig( const Pathname & override_r )
549 // ctor puts itself unter smart pointer control.
550 new ZConfig::Impl( override_r );
553 ///////////////////////////////////////////////////////////////////
555 // METHOD NAME : ZConfig::instance
556 // METHOD TYPE : ZConfig &
558 ZConfig & ZConfig::instance()
560 static ZConfig _instance; // The singleton
564 ///////////////////////////////////////////////////////////////////
566 // METHOD NAME : ZConfig::ZConfig
567 // METHOD TYPE : Ctor
575 ///////////////////////////////////////////////////////////////////
577 // METHOD NAME : ZConfig::~ZConfig
578 // METHOD TYPE : Dtor
583 Pathname ZConfig::systemRoot() const
585 Target_Ptr target( getZYpp()->getTarget() );
586 return target ? target->root() : Pathname();
589 ///////////////////////////////////////////////////////////////////
591 // system architecture
593 ///////////////////////////////////////////////////////////////////
595 Arch ZConfig::defaultSystemArchitecture()
597 static Arch _val( _autodetectSystemArchitecture() );
601 Arch ZConfig::systemArchitecture() const
602 { return _pimpl->cfg_arch; }
604 void ZConfig::setSystemArchitecture( const Arch & arch_r )
606 if ( arch_r != _pimpl->cfg_arch )
608 WAR << "Overriding system architecture (" << _pimpl->cfg_arch << "): " << arch_r << endl;
609 _pimpl->cfg_arch = arch_r;
613 ///////////////////////////////////////////////////////////////////
617 ///////////////////////////////////////////////////////////////////
619 Locale ZConfig::defaultTextLocale()
621 static Locale _val( _autodetectTextLocale() );
625 Locale ZConfig::textLocale() const
626 { return _pimpl->cfg_textLocale; }
628 void ZConfig::setTextLocale( const Locale & locale_r )
630 if ( locale_r != _pimpl->cfg_textLocale )
632 WAR << "Overriding text locale (" << _pimpl->cfg_textLocale << "): " << locale_r << endl;
633 _pimpl->cfg_textLocale = locale_r;
634 #warning prefer signal
635 sat::Pool::instance().setTextLocale( locale_r );
639 ///////////////////////////////////////////////////////////////////
641 Pathname ZConfig::repoCachePath() const
643 return ( _pimpl->cfg_cache_path.empty()
644 ? Pathname("/var/cache/zypp") : _pimpl->cfg_cache_path );
647 Pathname ZConfig::repoMetadataPath() const
649 return ( _pimpl->cfg_metadata_path.empty()
650 ? (repoCachePath()/"raw") : _pimpl->cfg_metadata_path );
653 Pathname ZConfig::repoSolvfilesPath() const
655 return ( _pimpl->cfg_solvfiles_path.empty()
656 ? (repoCachePath()/"solv") : _pimpl->cfg_solvfiles_path );
659 Pathname ZConfig::repoPackagesPath() const
661 return ( _pimpl->cfg_packages_path.empty()
662 ? (repoCachePath()/"packages") : _pimpl->cfg_packages_path );
665 ///////////////////////////////////////////////////////////////////
667 Pathname ZConfig::configPath() const
669 return ( _pimpl->cfg_config_path.empty()
670 ? Pathname("/etc/zypp") : _pimpl->cfg_config_path );
673 Pathname ZConfig::knownReposPath() const
675 return ( _pimpl->cfg_known_repos_path.empty()
676 ? (configPath()/"repos.d") : _pimpl->cfg_known_repos_path );
679 Pathname ZConfig::knownServicesPath() const
681 return ( _pimpl->cfg_known_services_path.empty()
682 ? (configPath()/"services.d") : _pimpl->cfg_known_repos_path );
685 Pathname ZConfig::pluginServicesPath() const
687 return ( _pimpl->cfg_plugin_services_path.empty()
688 ? ("/space/tmp/services") : _pimpl->cfg_plugin_services_path );
691 Pathname ZConfig::vendorPath() const
693 return ( _pimpl->cfg_vendor_path.empty()
694 ? (configPath()/"vendors.d") : _pimpl->cfg_vendor_path );
697 Pathname ZConfig::locksFile() const
699 return ( _pimpl->locks_file.empty()
700 ? (configPath()/"locks") : _pimpl->locks_file );
703 ///////////////////////////////////////////////////////////////////
705 bool ZConfig::repo_add_probe() const
707 return _pimpl->repo_add_probe;
710 unsigned ZConfig::repo_refresh_delay() const
712 return _pimpl->repo_refresh_delay;
715 bool ZConfig::repoLabelIsAlias() const
716 { return _pimpl->repoLabelIsAlias; }
718 void ZConfig::repoLabelIsAlias( bool yesno_r )
719 { _pimpl->repoLabelIsAlias = yesno_r; }
721 bool ZConfig::download_use_deltarpm() const
722 { return _pimpl->download_use_deltarpm; }
724 bool ZConfig::download_use_deltarpm_always() const
725 { return download_use_deltarpm() && _pimpl->download_use_deltarpm_always; }
727 bool ZConfig::download_media_prefer_download() const
728 { return _pimpl->download_media_prefer_download; }
730 void ZConfig::set_download_media_prefer_download( bool yesno_r )
731 { _pimpl->download_media_prefer_download.set( yesno_r ); }
733 void ZConfig::set_default_download_media_prefer_download()
734 { _pimpl->download_media_prefer_download.restoreToDefault(); }
736 long ZConfig::download_max_concurrent_connections() const
737 { return _pimpl->download_max_concurrent_connections; }
739 long ZConfig::download_min_download_speed() const
740 { return _pimpl->download_min_download_speed; }
742 long ZConfig::download_max_download_speed() const
743 { return _pimpl->download_max_download_speed; }
745 long ZConfig::download_max_silent_tries() const
746 { return _pimpl->download_max_silent_tries; }
748 DownloadMode ZConfig::commit_downloadMode() const
749 { return _pimpl->commit_downloadMode; }
751 bool ZConfig::solver_onlyRequires() const
752 { return _pimpl->solver_onlyRequires; }
754 bool ZConfig::solver_allowVendorChange() const
755 { return _pimpl->solver_allowVendorChange; }
757 bool ZConfig::solver_cleandepsOnRemove() const
758 { return _pimpl->solver_cleandepsOnRemove; }
760 Pathname ZConfig::solver_checkSystemFile() const
761 { return ( _pimpl->solver_checkSystemFile.empty()
762 ? (configPath()/"systemCheck") : _pimpl->solver_checkSystemFile ); }
764 unsigned ZConfig::solver_upgradeTestcasesToKeep() const
765 { return _pimpl->solver_upgradeTestcasesToKeep; }
767 bool ZConfig::solverUpgradeRemoveDroppedPackages() const { return _pimpl->solverUpgradeRemoveDroppedPackages; }
768 void ZConfig::setSolverUpgradeRemoveDroppedPackages( bool val_r ) { _pimpl->solverUpgradeRemoveDroppedPackages.set( val_r ); }
769 void ZConfig::resetSolverUpgradeRemoveDroppedPackages() { _pimpl->solverUpgradeRemoveDroppedPackages.restoreToDefault(); }
771 const std::set<std::string> & ZConfig::multiversionSpec() const { return _pimpl->multiversion; }
772 void ZConfig::addMultiversionSpec( const std::string & name_r ) { _pimpl->multiversion.insert( name_r ); }
773 void ZConfig::removeMultiversionSpec( const std::string & name_r ) { _pimpl->multiversion.erase( name_r ); }
775 bool ZConfig::apply_locks_file() const
776 { return _pimpl->apply_locks_file; }
778 Pathname ZConfig::update_dataPath() const
780 return ( _pimpl->update_data_path.empty()
781 ? Pathname("/var/adm") : _pimpl->update_data_path );
784 Pathname ZConfig::update_messagesPath() const
786 return ( _pimpl->update_messages_path.empty()
787 ? Pathname(update_dataPath()/"update-messages") : _pimpl->update_messages_path );
790 Pathname ZConfig::update_scriptsPath() const
792 return ( _pimpl->update_scripts_path.empty()
793 ? Pathname(update_dataPath()/"update-scripts") : _pimpl->update_scripts_path );
796 std::string ZConfig::updateMessagesNotify() const
797 { return _pimpl->updateMessagesNotify; }
799 void ZConfig::setUpdateMessagesNotify( const std::string & val_r )
800 { _pimpl->updateMessagesNotify.set( val_r ); }
802 void ZConfig::resetUpdateMessagesNotify()
803 { _pimpl->updateMessagesNotify.restoreToDefault(); }
805 ///////////////////////////////////////////////////////////////////
807 target::rpm::RpmInstFlags ZConfig::rpmInstallFlags() const
808 { return _pimpl->rpmInstallFlags; }
811 Pathname ZConfig::historyLogFile() const
813 return ( _pimpl->history_log_path.empty() ?
814 Pathname("/var/log/zypp/history") : _pimpl->history_log_path );
818 Pathname ZConfig::credentialsGlobalDir() const
820 return ( _pimpl->credentials_global_dir_path.empty() ?
821 Pathname("/etc/zypp/credentials.d") : _pimpl->credentials_global_dir_path );
824 Pathname ZConfig::credentialsGlobalFile() const
826 return ( _pimpl->credentials_global_file_path.empty() ?
827 Pathname("/etc/zypp/credentials.cat") : _pimpl->credentials_global_file_path );
830 ///////////////////////////////////////////////////////////////////
832 std::string ZConfig::distroverpkg() const
833 { return "redhat-release"; }
835 ///////////////////////////////////////////////////////////////////
837 std::ostream & ZConfig::about( std::ostream & str ) const
839 str << "libzypp: " << VERSION << " built " << __DATE__ << " " << __TIME__ << endl;
841 str << "satsolver: " << sat_version;
842 if ( ::strcmp( sat_version, SATSOLVER_VERSION_STRING ) )
843 str << " (built against " << SATSOLVER_VERSION_STRING << ")";
846 str << "zypp.conf: '" << _pimpl->_parsedZyppConf << "'" << endl;
847 str << "TextLocale: '" << textLocale() << "' (" << defaultTextLocale() << ")" << endl;
848 str << "SystemArchitecture: '" << systemArchitecture() << "' (" << defaultSystemArchitecture() << ")" << endl;
852 /////////////////////////////////////////////////////////////////
854 ///////////////////////////////////////////////////////////////////