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 6302724..9878a95 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 b561576..ebf8ab1 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 */