2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-05 02:19:31 +00:00

Meta.pm: avoid duplicate prefix

git-svn-id: https://svn.fhem.de/fhem/trunk@18947 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2019-03-17 16:20:03 +00:00
parent fea1d4e624
commit c839bff8c4

View File

@ -1796,7 +1796,7 @@ sub __GenerateKeywordsFromSupportCommunity {
$tag =~ s/ +/-/g; $tag =~ s/ +/-/g;
foreach ( split '/', $tag ) { foreach ( split '/', $tag ) {
push @keywords, $prefix . $_; push @keywords, ( $_ =~ /^$prefix/ ? '' : $prefix ) . $_;
} }
} }
@ -1805,7 +1805,7 @@ sub __GenerateKeywordsFromSupportCommunity {
$tag =~ s/ +/-/g; $tag =~ s/ +/-/g;
foreach ( split '/', $tag ) { foreach ( split '/', $tag ) {
push @keywords, $prefix . $_; push @keywords, ( $_ =~ /^$prefix/ ? '' : $prefix ) . $_;
} }
} }
@ -2453,7 +2453,7 @@ sub __SetXVersion {
$modMeta->{x_version} = $modMeta->{x_version} =
$modMeta->{x_file}[2] . ':' $modMeta->{x_file}[2] . ':'
. ( . (
$modMeta->{version} eq '0.000000001' ? '?' $modMeta->{version} <= 0.000000001 ? '?'
: ( : (
$modMeta->{x_file}[7] ne 'generated/vcs' $modMeta->{x_file}[7] ne 'generated/vcs'
? version->parse( $modMeta->{version} )->normal ? version->parse( $modMeta->{version} )->normal