Ignore:
Timestamp:
Oct 24, 2017, 12:49:59 AM (7 years ago)
Author:
Bruno Cornec
Message:

Initial support of apk for pb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r2330 r2333  
    206206# 3: Should have the same keys as the previous one. If ambiguity, which other distributions should be checked
    207207# 4: Matching Rg. Expr to detect distribution and version
    208 my ($single_rel_files, $ambiguous_rel_files,$distro_similar,$distro_match) = pb_conf_get("osrelfile","osrelambfile","osambiguous","osrelexpr");
     208my ($single_rel_files, $ambiguous_rel_files,$distro_similar,$distro_match,$nover) = pb_conf_get("osrelfile","osrelambfile","osambiguous","osrelexpr","osnover");
    209209
    210210my $release;
     
    226226            ($release) = $tmp =~ m/$distro_match->{$d}/m;
    227227        } else {
    228             print STDERR "Unable to find $d version in $r (non-ambiguous)\n";
    229             print STDERR "Please report to the maintainer bruno_at_project-builder.org\n";
     228            if (not defined ($nover->{$d})) {
     229                print STDERR "Unable to find $d version in $r (non-ambiguous)\n";
     230                print STDERR "Please report to the maintainer bruno_at_project-builder.org\n";
     231            }
    230232            $release = "unknown";
    231233        }
     
    410412} elsif ($pbos->{'type'} eq "deb") {
    411413    $regexp = '^Build-Depends:(.*)$';
     414} elsif ($pbos->{'type'} eq "apk") {
     415    # TODO
     416    $regexp = 'TODO\n';
    412417} elsif ($pbos->{'type'} eq "ebuild") {
    413418    $sep = '"'.$/;
    414     $regexp = '^DEPEND="(.*)"\n'
     419    $regexp = '^DEPEND="(.*)"\n';
    415420} else {
    416421    # No idea
Note: See TracChangeset for help on using the changeset viewer.