Skip to content

Commit

Permalink
[backend] support staticlinks with kiwi images containing a profile name
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Mar 10, 2016
1 parent f4acb16 commit 9c98954
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -798,9 +798,10 @@ sub createrepo_staticlinks {
} elsif (/^(.*)-(\d+\.\d+\.\d+)-Build\d+\.\d+([-\.].*\.(gz|bz2|tbz|tgz|xz)?(?:\.sha256)?)$/s) {
$link = "$1$3";
$link = "$1-$2$3" if $versioned;
} elsif (/^(.*)-(\d+\.\d+\.\d+)-Build\d+\.\d+(\.(raw.install.raw.xz|raw.xz|box|json|install.iso|tbz|tgz|vmx|vmdk|vhdfixed.xz|iso|qcow2|qcow2.xz|ova)?(?:\.sha256)?)$/s) {
$link = "$1$3";
$link = "$1-$2$3" if $versioned;
} elsif (/^(.*)-(\d+\.\d+\.\d+)?(\.\w+)?-Build\d+\.\d+(\.(raw.install.raw.xz|raw.xz|box|json|install.iso|tbz|tgz|vmx|vmdk|vhdfixed.xz|iso|qcow2|qcow2.xz|ova)?(?:\.sha256)?)$/s) {
my $profile = $3 || "";
$link = "$1$profile$4";
$link = "$1$profile-$2$4" if $versioned;
}
next unless $link;
unlink("$extrep/$arch/.$link"); # drop left over
Expand Down

0 comments on commit 9c98954

Please sign in to comment.