Imported Upstream version 15.19.4 87/94687/1
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 1 Nov 2016 02:07:06 +0000 (11:07 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 1 Nov 2016 02:07:08 +0000 (11:07 +0900)
Change-Id: I8e405db9900a3cb9cbd74dcc27eacd53c9e2723a
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
VERSION.cmake
libzypp.spec.cmake
package/libzypp.changes
po/zypp-po.tar.bz2
zypp/RepoInfo.cc
zypp/RepoInfo.h
zypp/RepoManager.cc
zypp/TriBool.h

index b18fd52..9434300 100644 (file)
@@ -61,8 +61,8 @@
 SET(LIBZYPP_MAJOR "15")
 SET(LIBZYPP_COMPATMINOR "19")
 SET(LIBZYPP_MINOR "19")
-SET(LIBZYPP_PATCH "3")
+SET(LIBZYPP_PATCH "4")
 #
-# LAST RELEASED: 15.19.3 (19)
+# LAST RELEASED: 15.19.4 (19)
 # (The number in parenthesis is LIBZYPP_COMPATMINOR)
 #=======
index 7585a65..a190eec 100644 (file)
@@ -196,17 +196,13 @@ export CXX=g++-4.6
 %endif
 export CFLAGS="$RPM_OPT_FLAGS"
 export CXXFLAGS="$RPM_OPT_FLAGS"
-unset TRANSLATION_SET
 unset EXTRA_CMAKE_OPTIONS
-# Same codebase, but SLES may use it's own translation set.
-#     suse_version
-#      1110            SLES11
-#      1315-1319       SLES12
-%if 0%{?suse_version} == 1110 || ( 0%{?suse_version} >= 1315 && 0%{?suse_version} <= 1319 )
+# We are moving towards a uniform translation set for SLE and openSUSE.
+# While separate SLE translations are still present, overlay them.
+unset TRANSLATION_SET
 if [ -f ../po/sle-zypp-po.tar.bz2 ]; then
   export TRANSLATION_SET=sle-zypp
 fi
-%endif
 # No libproxy on SLE11
 %if 0%{?suse_version} == 1110
 export EXTRA_CMAKE_OPTIONS="-DDISABLE_LIBPROXY=ON"
index 0360c58..fc3d908 100644 (file)
@@ -1,4 +1,21 @@
 -------------------------------------------------------------------
+Thu Oct 22 12:23:29 CEST 2015 - ma@suse.de
+
+- Use a uniform translation set for SLE and openSUSE (bnc#948924)
+- fix Plugin-services not updating repo GPGCheck settings (bnc#951402)
+- version 15.19.4 (19)
+
+-------------------------------------------------------------------
+Sun Oct 18 01:13:27 CEST 2015 - ma@suse.de
+
+- Update zypp-po.tar.bz2
+
+-------------------------------------------------------------------
+Thu Oct 15 01:13:57 CEST 2015 - ma@suse.de
+
+- Update zypp-po.tar.bz2
+
+-------------------------------------------------------------------
 Wed Oct 14 16:36:27 CEST 2015 - ma@suse.de
 
 - make Solvable::asUserString more readable (bnc#949957)
index 257ea5f..b8e8857 100644 (file)
Binary files a/po/zypp-po.tar.bz2 and b/po/zypp-po.tar.bz2 differ
index 27dc477..09b3472 100644 (file)
@@ -294,6 +294,12 @@ namespace zypp
   void RepoInfo::setPkgGpgCheck( TriBool value_r )
   { _pimpl->_pkgGpgCheck = value_r; }
 
+  void RepoInfo::getRawGpgChecks( TriBool & g_r, TriBool & r_r, TriBool & p_r ) const
+  {
+    g_r = _pimpl->_gpgCheck;
+    r_r = _pimpl->_repoGpgCheck;
+    p_r = _pimpl->_pkgGpgCheck;
+  }
 
   TriBool RepoInfo::validRepoSignature() const
   {
index 7f38752..c2b9cdc 100644 (file)
@@ -425,6 +425,10 @@ namespace zypp
 
       class Impl;
     private:
+      friend class RepoManager;
+      /** Raw values for RepoManager */
+      void getRawGpgChecks( TriBool & g_r, TriBool & r_r, TriBool & p_r ) const;
+
       /** Pointer to implementation */
       RWCOW_pointer<Impl> _pimpl;
   };
index 416332b..f3da6a8 100644 (file)
@@ -2247,6 +2247,27 @@ namespace zypp
           oldRepoModified = true;
         }
 
+        // changed gpg check settings?
+       // ATM only plugin services can set GPG values.
+       if ( service.type() == ServiceType::PLUGIN )
+       {
+         TriBool ogpg[3];      // Gpg RepoGpg PkgGpg
+         TriBool ngpg[3];
+         oldRepo->getRawGpgChecks( ogpg[0], ogpg[1], ogpg[2] );
+         it->     getRawGpgChecks( ngpg[0], ngpg[1], ngpg[2] );
+#define Z_CHKGPG(I,N)                                                                          \
+         if ( ! sameTriboolState( ogpg[I], ngpg[I] ) )                                         \
+         {                                                                                     \
+           DBG << "Service repo " << it->alias() << " gets new "#N"Check " << ngpg[I] << endl; \
+           oldRepo->set##N##Check( ngpg[I] );                                                  \
+           oldRepoModified = true;                                                             \
+         }
+         Z_CHKGPG( 0, Gpg );
+         Z_CHKGPG( 1, RepoGpg );
+         Z_CHKGPG( 2, PkgGpg );
+#undef Z_CHKGPG
+       }
+
         // save if modified:
         if ( oldRepoModified )
         {
index 4f6a0ae..aa5e7ff 100644 (file)
@@ -65,6 +65,10 @@ namespace boost
       /** \relates TriBool stream output */
       inline std::ostream & operator<<(std::ostream & s, const tribool & obj)
       { return s << zypp::asString( obj ); }
+
+      /** \relates TriBool whether 2 tribool have the same state (this is NOT ==) */
+      inline bool sameTriboolState( tribool lhs, tribool rhs )
+      { return( ( indeterminate(lhs) && indeterminate(rhs) ) || ( lhs == rhs ) ); }
     }
 }
 #endif // ZYPP_TRIBOOL_H