add updateScriptsPath (non-configurable because it doesn't make sense)
authorKlaus Kaempf <kkaempf@suse.de>
Fri, 11 Apr 2008 11:34:38 +0000 (11:34 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Fri, 11 Apr 2008 11:34:38 +0000 (11:34 +0000)
zypp/ZConfig.cc
zypp/ZConfig.h

index 63027245ce78f59fc3a03a6eb61dcaa5a8bf5f84..9878a954aec7bc523ee47a69acc29807824c0a7f 100644 (file)
@@ -284,6 +284,7 @@ namespace zypp
     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 @@ namespace zypp
     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
 ///////////////////////////////////////////////////////////////////
index b561576c2b9d05ccaa34e4373e7dab4f37c3204f..ebf8ab1eb6efce42f7d3366fb6778340ed653efa 100644 (file)
@@ -153,6 +153,11 @@ namespace zypp
        */
       bool apply_locks_file() const;
 
+     /**
+       * Path where update scripts are stored
+       */
+      Pathname updateScriptsPath() const;
+
     public:
       class Impl;
       /** Dtor */