Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb31668' into 'master'
Ensure that the destination path for applying the delta rpm exists. Fixes JB#31668

Fixes the issue for more devel branch of libzypp where applying the first delta rpm from a repository failed.

See merge request !12
  • Loading branch information
pycage committed Oct 27, 2015
2 parents 202ab28 + bd03b2e commit 302a550
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libzypp/zypp/repo/PackageProvider.cc
Expand Up @@ -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 ) ) )
Expand Down

0 comments on commit 302a550

Please sign in to comment.