Skip to content

Commit

Permalink
correct tarball path compare
Browse files Browse the repository at this point in the history
  • Loading branch information
shokakucarrier committed Dec 10, 2024
1 parent e21e661 commit d2b2fd3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,9 @@ private boolean writePackageMetadata( List<StoreResource> firstLevelFiles, Artif
}

// Generate tarball url if missing
String tarball = "http://indy/" + packagePath.getTarPath(); // here we use mock host. indy will amend it with the right hostname

if ( versionMetadata.getDist() == null || !versionMetadata.getDist().getTarball().equals(tarball) )
if ( versionMetadata.getDist() == null || !versionMetadata.getDist().getTarball().endsWith(packagePath.getTarPath()) )
{
String tarball = "http://indy/" + packagePath.getTarPath(); // here we use mock host. indy will amend it with the right hostname
//logger.debug( "Generate dist tarball: {}", tarball );
versionMetadata.setDist( new Dist( tarball ) );
}
Expand Down

0 comments on commit d2b2fd3

Please sign in to comment.