Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Dec 15, 2023
1 parent b0d32e2 commit bd6e1ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/Pkgcraft/Version.pm
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ package Pkgcraft::Version {

sub parse {
my $str = shift // die "missing version string";
my $ptr = C::pkgcraft_version_parse($str);
return defined($ptr);
return defined C::pkgcraft_version_parse($str);
}

sub revision {
Expand Down
2 changes: 1 addition & 1 deletion lib/_pkgcraft_c.pm
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ $ffi->attach('pkgcraft_version_intersects' => ['version_t', 'version_t'] => 'boo
$ffi->attach('pkgcraft_version_new' => ['string'] => 'version_t');
$ffi->attach('pkgcraft_version_revision' => ['version_t'] => 'revision_t');
$ffi->attach('pkgcraft_version_str' => ['version_t'] => 'c_str');
$ffi->attach('pkgcraft_version_parse' => ['string'] => 'c_str');
$ffi->attach('pkgcraft_version_parse' => ['string'] => 'opaque');

# revision support
$ffi->attach('pkgcraft_revision_cmp' => ['revision_t', 'revision_t'] => 'int');
Expand Down

0 comments on commit bd6e1ab

Please sign in to comment.