Skip to content

Commit

Permalink
support PKGBUILD files generated by a service
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jul 17, 2014
1 parent c0285a0 commit 92cf0db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Build.pm
Expand Up @@ -1001,9 +1001,13 @@ sub parse {
return Build::Deb::parse($cf, $fn, @args) if $do_deb && $fn =~ /\.dsc$/;
return Build::Kiwi::parse($cf, $fn, @args) if $do_kiwi && $fn =~ /config\.xml$/;
return Build::Kiwi::parse($cf, $fn, @args) if $do_kiwi && $fn =~ /\.kiwi$/;
return Build::Arch::parse($cf, $fn, @args) if $do_arch && $fn =~ /(^|\/|-)PKGBUILD$/;
return parse_preinstallimage($cf, $fn, @args) if $fn =~ /(^|\/|-)_preinstallimage$/;
return Build::LiveBuild::parse($cf, $fn, @args) if $do_livebuild && $fn =~ /\.livebuild$/;
my $fnx = $fn;
$fnx =~ s/.*\///;
$fnx =~ s/^[0-9a-f]{32,}-//; # hack for OBS srcrep implementation
$fnx =~ s/^_service:.*://;
return Build::Arch::parse($cf, $fn, @args) if $do_arch && $fnx eq 'PKGBUILD';
return parse_preinstallimage($cf, $fn, @args) if $fnx eq '_preinstallimage';
return undef;
}

Expand Down

0 comments on commit 92cf0db

Please sign in to comment.