Skip to content

Commit

Permalink
make version '0' a valid version
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jun 19, 2013
1 parent 7e49410 commit 0c332cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Build.pm
Expand Up @@ -530,7 +530,7 @@ sub readdeps {
if ($pkginfo) {
# extract ver and rel from self provides
my ($v, $r) = map { /\Q$pkgid\E = ([^-]+)(?:-(.+))?$/ } @ss;
die("$pkgid: no self provides\n") unless $v;
die("$pkgid: no self provides\n") unless defined($v) && $v ne '';
$pkginfo->{$pkgid}->{'name'} = $pkgid;
$pkginfo->{$pkgid}->{'version'} = $v;
$pkginfo->{$pkgid}->{'release'} = $r if defined($r);
Expand Down

0 comments on commit 0c332cf

Please sign in to comment.