Author: kkaempf Date: Fri Apr 11 13:34:38 2008 New Revision: 9533 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9533&view=rev Log: add updateScriptsPath (non-configurable because it doesn't make sense) Modified: trunk/libzypp/zypp/ZConfig.cc trunk/libzypp/zypp/ZConfig.h Modified: trunk/libzypp/zypp/ZConfig.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ZConfig.cc?rev=9533&r1=9532&r2=9533&view=diff ============================================================================== --- trunk/libzypp/zypp/ZConfig.cc (original) +++ trunk/libzypp/zypp/ZConfig.cc Fri Apr 11 13:34:38 2008 @@ -284,6 +284,7 @@ Pathname cfg_known_repos_path; Pathname cfg_vendor_path; Pathname locks_file; + Pathname update_scripts_path; bool repo_add_probe; unsigned repo_refresh_delay; @@ -450,6 +451,12 @@ return _pimpl->apply_locks_file; } + Pathname ZConfig::updateScriptsPath() const + { + return ( _pimpl->update_scripts_path.empty() + ? Pathname("/var/adm/update-scripts") : _pimpl->update_scripts_path ); + } + ///////////////////////////////////////////////////////////////// } // namespace zypp /////////////////////////////////////////////////////////////////// Modified: trunk/libzypp/zypp/ZConfig.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ZConfig.h?rev=9533&r1=9532&r2=9533&view=diff ============================================================================== --- trunk/libzypp/zypp/ZConfig.h (original) +++ trunk/libzypp/zypp/ZConfig.h Fri Apr 11 13:34:38 2008 @@ -153,6 +153,11 @@ */ bool apply_locks_file() const; + /** + * Path where update scripts are stored + */ + Pathname updateScriptsPath() const; + public: class Impl; /** Dtor */ -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org