diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/metadata.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index ea38735389..e05e400991 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -283,8 +283,10 @@ sub parse_package_metadata($) { for my $ugspec (@ugspecs) { my @ugspec = split /:/, $ugspec, 2; - parse_package_metadata_usergroup($src->{makefile}, "user", \%usernames, \%userids, $ugspec[0]) or return 0; - if (@ugspec > 1) { + if ($ugspec[0]) { + parse_package_metadata_usergroup($src->{makefile}, "user", \%usernames, \%userids, $ugspec[0]) or return 0; + } + if ($ugspec[1]) { parse_package_metadata_usergroup($src->{makefile}, "group", \%groupnames, \%groupids, $ugspec[1]) or return 0; } } |