From ed599e384cec0c0e00bed74546973237f63ba6b8 Mon Sep 17 00:00:00 2001 From: Martin Grimme Date: Wed, 21 Oct 2015 12:52:13 +0200 Subject: [PATCH] [deltarpm] Ensure that the destination path for applying the delta rpm exists. Fixes JB#31668 --- libzypp/zypp/repo/PackageProvider.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libzypp/zypp/repo/PackageProvider.cc b/libzypp/zypp/repo/PackageProvider.cc index 8d5a5bf..75e6c2a 100644 --- a/libzypp/zypp/repo/PackageProvider.cc +++ b/libzypp/zypp/repo/PackageProvider.cc @@ -398,6 +398,8 @@ namespace zypp // build the package and put it into the cache Pathname destination( _package->repoInfo().packagesPath() / _package->location().filename() ); + // ensure that the destination directory exists + filesystem::assert_dir( destination.dirname() ); if ( ! applydeltarpm::provide( delta, destination, bind( &RpmPackageProvider::progressDeltaApply, this, _1 ) ) )