Skip to content

Commit

Permalink
[backend] (try to) fix static links for profiled kiwi images
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Sep 16, 2016
1 parent b225ac5 commit a2f2919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/bs_publish
Expand Up @@ -827,11 +827,11 @@ sub createrepo_staticlinks {
} elsif (/^(.*)-Build\d\d\d\d(-Media\d)(\.iso?(\.sha256)?)$/s) {
# product builds
$link = "$1$2$3"; # no support for versioned links
} elsif (/^(.*)-(\d+\.\d+\.\d+)-Build\d+\.\d+([-\.].*\.(gz|bz2|tbz|tgz|xz)?(?:\.sha256)?)$/s) {
} elsif (/^(.*)-(\d+\.\d+\.\d+)?(-\w+)?-Build\d+\.\d+([-\.].*\.(gz|bz2|tbz|tgz|xz)?(?:\.sha256)?)$/s) {
# kiwi appliance
$link = "$1$3";
$link = "$1-$2$3" if $versioned;
} elsif (/^(.*)-(\d+\.\d+\.\d+)?(\.\w+)?-Build\d+\..*(\.(raw.install.raw.xz|raw.xz|box|json|install.iso|tbz|tgz|vmx|vmdk|vdi|vhdfixed.xz|iso|qcow2|qcow2.xz|ova)?(?:\.sha256)?)$/s) {
} elsif (/^(.*)-(\d+\.\d+\.\d+)?([\.-]\w+)?-Build\d+\..*(\.(raw.install.raw.xz|raw.xz|box|json|install.iso|tbz|tgz|vmx|vmdk|vdi|vhdfixed.xz|iso|qcow2|qcow2.xz|ova)?(?:\.sha256)?)$/s) {
# kiwi appliance
my $profile = $3 || "";
$link = "$1$profile$4";
Expand Down

0 comments on commit a2f2919

Please sign in to comment.