Skip to content

Commit 976ef1b

Browse files
committed
Fix the path map patterns for brew repos
1 parent 0f11a39 commit 976ef1b

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)