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 ) ) )