Skip to content

Commit

Permalink
Merge pull request #8807 from mlschroe/master
Browse files Browse the repository at this point in the history
[backend] vagrand box publishing: cope with profiles that contain a h…
  • Loading branch information
mlschroe committed Nov 28, 2019
2 parents 0937f42 + 6c15156 commit cf4b816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -1132,9 +1132,9 @@ sub createrepo_vagrant {
if (!$withversion) {
# split off profile
my $profile = '';
$profile = $1 if $xbox =~ s/(-[^0-9-][^-]*)$//;
$profile = $1 if $xbox =~ s/((?:-[^0-9-][^-]*)+)$//;
# split off version
next unless $xbox =~ s/-([^-]*)$//;
next unless $xbox =~ s/-([0-9][^-]*)$//;
my $version = $1;
$profile = '' if $profile eq "-$provider";
# add to boxes (last one wins)
Expand Down

0 comments on commit cf4b816

Please sign in to comment.