Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,17 @@ public class KojiPathPatternFormatter
private final Logger logger = LoggerFactory.getLogger( getClass() );

public Set<String> getPatterns( ArtifactRef artifactRef, List<KojiArchiveInfo> archives )
{
return getPatterns( artifactRef, archives, false );
}

public Set<String> getPatterns( ArtifactRef artifactRef, List<KojiArchiveInfo> archives, boolean skipVersionTest )
{
Set<String> patterns = new HashSet<>();
for ( KojiArchiveInfo a : archives )
{
ArtifactRef ar = a.asArtifact();
if ( !kojiUtils.isVersionSignatureAllowedWithVersion( a.getVersion() ) )
if ( !skipVersionTest && !kojiUtils.isVersionSignatureAllowedWithVersion( a.getVersion() ) )
{
logger.warn(
"Cannot use Koji archive for path_mask_patterns: {}. Version '{}' is not allowed from Koji.", a,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public KojiRepairResult repairPathMask( KojiRepairRequest request, String user,
}

// set pathMaskPatterns using build output paths
Set<String> patterns = kojiPathFormatter.getPatterns( artifactRef, archives );
Set<String> patterns = kojiPathFormatter.getPatterns( artifactRef, archives, true );
logger.debug( "For repo: {}, resetting path_mask_patterns to:\n\n{}\n\n", store.getKey(),
patterns );

Expand Down