From bd03b2e565ec0196cb9ad437f4220a8e12e352b5 Mon Sep 17 00:00:00 2001 From: Martin Grimme Date: Wed, 21 Oct 2015 13:01:32 +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 0557284..251160b 100644 --- a/libzypp/zypp/repo/PackageProvider.cc +++ b/libzypp/zypp/repo/PackageProvider.cc @@ -418,6 +418,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 ) ) )