Skip to content

Commit

Permalink
Merge branch 'jb40313' into 'master'
Browse files Browse the repository at this point in the history
[libzypp] Upgrade to 17.9.0. Fixes JB#40313

See merge request mer-core/libzypp!23
  • Loading branch information
kende committed Sep 11, 2019
2 parents 839c371 + fe738c1 commit 8da3fec
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
@@ -1,3 +1,3 @@
[submodule "upstream"]
path = upstream
url = https://github.com/openSUSE/libzypp.git
url = https://git.sailfishos.org/mirror/libzypp.git
14 changes: 7 additions & 7 deletions rpm/0003-Ensure-that-the-destination-path-for-applyi.patch
Expand Up @@ -8,12 +8,12 @@ diff --git a/zypp/repo/PackageProvider.cc b/zypp/repo/PackageProvider.cc
index 0557284..251160b 100644
--- a/zypp/repo/PackageProvider.cc
+++ b/zypp/repo/PackageProvider.cc
@@ -552,6 +552,8 @@

// build the package and put it into the cache
Pathname destination( _package->repoInfo().packagesPath() / _package->repoInfo().path() / _package->location().filename() );
@@ -613,6 +613,8 @@ namespace zypp
// Build the package
Pathname cachedest( _package->repoInfo().packagesPath() / _package->repoInfo().path() / _package->location().filename() );
Pathname builddest( cachedest.extend( ".drpm" ) );
+ // ensure that the destination directory exists
+ filesystem::assert_dir( destination.dirname() );
if ( ! applydeltarpm::provide( delta, destination,
+ filesystem::assert_dir( builddest.dirname() );

if ( ! applydeltarpm::provide( delta, builddest,
bind( &RpmPackageProvider::progressDeltaApply, this, _1 ) ) )
4 changes: 2 additions & 2 deletions rpm/0007-Set-GPG-homedir-when-reading-signatures.patch
Expand Up @@ -9,10 +9,10 @@ diff --git a/zypp/KeyRing.cc b/zypp/KeyRing.cc
index d9e0c9a..c39b872 100644
--- a/zypp/KeyRing.cc
+++ b/zypp/KeyRing.cc
@@ -564,6 +564,10 @@
@@ -639,6 +639,10 @@ namespace zypp
return std::string();
}

+ if(!ctx->setHomedir(generalKeyRing())) {
+ ZYPP_THROW(KeyRingException(_("General keyring not found")));
+ }
Expand Down
5 changes: 3 additions & 2 deletions rpm/libzypp.spec
Expand Up @@ -2,7 +2,7 @@ Name: libzypp
License: GPLv2+
Group: System/Packages
Summary: Package, Patch, Pattern, and Product Management
Version: 17.3.1
Version: 17.9.0
Release: 1
Source: %{name}-%{version}.tar.bz2
Source1: %{name}-rpmlintrc
Expand All @@ -16,7 +16,7 @@ Patch7: 0007-Set-GPG-homedir-when-reading-signatures.patch
BuildRequires: cmake
BuildRequires: openssl-devel
# Need boost > 1.53 for string_ref utility
BuildRequires: boost-devel >= 1.53.0
BuildRequires: boost-devel >= 1.53.0
BuildRequires: doxygen
BuildRequires: gcc-c++ >= 4.6
BuildRequires: gettext-devel
Expand Down Expand Up @@ -221,6 +221,7 @@ fi
%{_datadir}/zypp
%{_bindir}/*
%{_libdir}/libzypp*so.*
%exclude %{_sysconfdir}/zypp/needreboot

%files devel
%defattr(-,root,root,-)
Expand Down
2 changes: 1 addition & 1 deletion upstream
Submodule upstream updated from 02d707 to 4eda4e

0 comments on commit 8da3fec

Please sign in to comment.