Skip to content

Commit

Permalink
Kiwi parser: make parsed repo data extendable
Browse files Browse the repository at this point in the history
In the future we may want to return flags like imageinclude.
  • Loading branch information
mlschroe committed Jun 1, 2017
1 parent 0b242e5 commit 14c50fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/Kiwi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use Build::SimpleXML;

our $bootcallback;
our $urlmapper;
our $repopriorities = 0;
our $repoextras = 0; # priority, flags, ...

sub unify {
my %h = map {$_ => 1} @_;
Expand Down Expand Up @@ -298,7 +298,7 @@ sub kiwiparse {
for (@{$ret->{'path'}}) {
my @s = split('/', $_, 2);
$_ = {'project' => $s[0], 'repository' => $s[1]};
$_->{'priority'} = $repoprio{"$s[0]/$s[1]"} if $repopriorities && defined $repoprio{"$s[0]/$s[1]"};
$_->{'priority'} = $repoprio{"$s[0]/$s[1]"} if $repoextras && defined $repoprio{"$s[0]/$s[1]"};
}
return $ret;
}
Expand Down

0 comments on commit 14c50fa

Please sign in to comment.