Skip to content

Commit 0104d2d

Browse files
authored
Merge pull request #2506 from sswguo/koji_patterns
Fix the path map patterns for brew repos
2 parents cb29888 + 976ef1b commit 0104d2d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

addons/koji/common/src/main/java/org/commonjava/indy/koji/content/KojiPathPatternFormatter.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,15 @@ public Set<String> getPatterns( final StoreKey inStore, ArtifactRef artifactRef,
8282
if ( pattern != null )
8383
{
8484
patterns.add( pattern );
85-
}
86-
}
8785

88-
if ( !patterns.isEmpty() )
89-
{
90-
String meta = getMetaString( artifactRef ); // Add metadata.xml to path mask patterns
91-
if ( meta != null )
92-
{
93-
patterns.add( meta );
86+
String meta = getMetaString( ar ); // Add metadata.xml of the koji archive to path mask patterns
87+
if ( meta != null )
88+
{
89+
patterns.add( meta );
90+
}
9491
}
9592
}
93+
9694
return patterns;
9795
}
9896

0 commit comments

Comments
 (0)