Skip to content

Commit

Permalink
[backend] support service generated PKGBUILD files
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jul 17, 2014
1 parent 55d7d50 commit b876429
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/backend/bs_sched
Original file line number Diff line number Diff line change
Expand Up @@ -8505,20 +8505,15 @@ NEXTPRP:
} elsif ($pdata->{'channel'}) {
$packtype = 'channel';
} elsif ($info && $info->{'file'}) {
if ($info->{'file'} eq 'PKGBUILD') {
if ($info->{'file'} =~ /\.(spec|dsc|kiwi|livebuild)$/) {
$packtype = $1;
} elsif ($info->{'file'} =~ /PKGBUILD$/) {
$packtype = 'arch';
} elsif ($info->{'file'} eq '_preinstallimage') {
} elsif ($info->{'file'} =~ /_preinstallimage$/) {
$packtype = 'preinstallimage';
} elsif ($info->{'file'} =~ /\.(spec|dsc|kiwi|livebuild)$/) {
$packtype = $1;
if ($packtype eq 'kiwi') {
# check if it is kiwi-product
if ($info->{'imagetype'} && $info->{'imagetype'}->[0] eq 'product') {
$packtype = 'kiwi-product';
} else {
$packtype = 'kiwi-image';
}
}
}
if ($packtype eq 'kiwi') {
$packtype = $info->{'imagetype'} && $info->{'imagetype'}->[0] eq 'product' ? 'kiwi-product' : 'kiwi-image';
}
}
$pkg2packtype{$packid} = $packtype;
Expand Down

0 comments on commit b876429

Please sign in to comment.