Imported Upstream version 17.0.0
[platform/upstream/libzypp.git] / zypp / ZConfig.h
index 1becc74..6114e7b 100644 (file)
@@ -171,6 +171,13 @@ namespace zypp
       Pathname knownServicesPath() const;
 
       /**
+       * Path containing custom repo variable definitions (configPath()/vars.d).
+       * \see \ref zypp::repo::RepoVarExpand Repo variable expander
+       * \ingroup g_ZC_CONFIGFILES
+       */
+      Pathname varsPath() const;
+
+      /**
        * Whether repository urls should be probed.
        / config option
        * repo.add.probe
@@ -258,6 +265,16 @@ namespace zypp
        */
       void set_default_download_media_prefer_download();
 
+      /** Path where media are preferably mounted or downloaded.
+       * Config option <tt>download.media_mountdir (/var/adm/mount)</tt>
+       * Needs to be a (writable) directory, otherwise /var/tmp is fallback.
+       */
+      Pathname download_mediaMountdir() const;
+      /** Set alternate value. */
+      void set_download_mediaMountdir( Pathname newval_r );
+      /** Reset to zypp.cong default. */
+      void set_default_download_mediaMountdir();
+
       /**
        * Commit download policy to use as default.
        */
@@ -276,10 +293,18 @@ namespace zypp
        * repositories \a .repo file will overwrite the defaults here.
        */
       //@{
-      bool gpgCheck() const;           ///< Turn signature checking on/off (on)
-      TriBool repoGpgCheck() const;    ///< Check repo matadata signatures (indeterminate - according to gpgcheck)
-      TriBool pkgGpgCheck() const;     ///< Check rpm package signatures (indeterminate - according to gpgcheck)
-      //@}
+      bool gpgCheck() const;                   ///< Turn signature checking on/off (on)
+      TriBool repoGpgCheck() const;            ///< Check repo matadata signatures (indeterminate - according to gpgcheck)
+      TriBool pkgGpgCheck() const;             ///< Check rpm package signatures (indeterminate - according to gpgcheck)
+
+      void setGpgCheck( bool val_r );          ///< Change the value
+      void setRepoGpgCheck( TriBool val_r );   ///< Change the value
+      void setPkgGpgCheck( TriBool val_r );    ///< Change the value
+
+      void resetGpgCheck();                    ///< Reset to the zconfig default
+      void resetRepoGpgCheck();                        ///< Reset to the zconfig default
+      void resetPkgGpgCheck();                 ///< Reset to the zconfig default
+     //@}
       //
       /**
        * Directory for equivalent vendor definitions  (configPath()/vendors.d)
@@ -310,6 +335,18 @@ namespace zypp
        */
       bool solver_allowVendorChange() const;
 
+      /** DUP tune: Whether to allow version downgrades upon DUP. */
+      bool solver_dupAllowDowngrade() const;
+
+      /** DUP tune: Whether to follow package renames upon DUP. */
+      bool solver_dupAllowNameChange() const;
+
+      /** DUP tune: Whether to allow package arch changes upon DUP. */
+      bool solver_dupAllowArchChange() const;
+
+      /** DUP tune: Whether to allow package vendor changes upon DUP. */
+      bool solver_dupAllowVendorChange() const;
+
       /**
        * Whether removing a package should also remove no longer needed requirements.
        */