|
|
|
@ -542,7 +542,7 @@ sub get_index ($$$) { |
|
|
|
my($name,$version); |
|
|
|
my($name,$version); |
|
|
|
my($href,$release,$desc); |
|
|
|
my($href,$release,$desc); |
|
|
|
my(@prereq,@bprereq); |
|
|
|
my(@prereq,@bprereq); |
|
|
|
my(@provides,@conflicts); |
|
|
|
my(@provides,@conflicts,@source,@nosource); |
|
|
|
my(%options); |
|
|
|
my(%options); |
|
|
|
my($platform,$prefix); |
|
|
|
my($platform,$prefix); |
|
|
|
my($rec); |
|
|
|
my($rec); |
|
|
|
@ -566,6 +566,8 @@ sub get_index ($$$) { |
|
|
|
@bprereq = (); |
|
|
|
@bprereq = (); |
|
|
|
@provides = (); |
|
|
|
@provides = (); |
|
|
|
@conflicts = (); |
|
|
|
@conflicts = (); |
|
|
|
|
|
|
|
@source = (); |
|
|
|
|
|
|
|
@nosource = (); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!(defined $href) && /<Repository.*?href="([^"]*)"/) { |
|
|
|
if (!(defined $href) && /<Repository.*?href="([^"]*)"/) { |
|
|
|
@ -610,6 +612,14 @@ sub get_index ($$$) { |
|
|
|
$section = 'conflicts' if $useit; |
|
|
|
$section = 'conflicts' if $useit; |
|
|
|
} elsif ($tag eq '/Conflicts') { |
|
|
|
} elsif ($tag eq '/Conflicts') { |
|
|
|
$section = undef; |
|
|
|
$section = undef; |
|
|
|
|
|
|
|
} elsif ($tag eq 'NoSource') { |
|
|
|
|
|
|
|
$section = 'nosource' if $useit; |
|
|
|
|
|
|
|
} elsif ($tag eq '/NoSource') { |
|
|
|
|
|
|
|
$section = undef; |
|
|
|
|
|
|
|
} elsif ($tag eq 'Source') { |
|
|
|
|
|
|
|
$section = 'nosource' if $useit; |
|
|
|
|
|
|
|
} elsif ($tag eq '/Source') { |
|
|
|
|
|
|
|
$section = undef; |
|
|
|
} elsif ($tag eq 'Name') { |
|
|
|
} elsif ($tag eq 'Name') { |
|
|
|
$name = $body; |
|
|
|
$name = $body; |
|
|
|
} elsif ($tag eq 'Version') { |
|
|
|
} elsif ($tag eq 'Version') { |
|
|
|
@ -629,6 +639,10 @@ sub get_index ($$$) { |
|
|
|
push(@provides, $body); |
|
|
|
push(@provides, $body); |
|
|
|
} elsif ($section eq 'conflicts') { |
|
|
|
} elsif ($section eq 'conflicts') { |
|
|
|
push(@conflicts, $body); |
|
|
|
push(@conflicts, $body); |
|
|
|
|
|
|
|
} elsif ($section eq 'source') { |
|
|
|
|
|
|
|
push(@source, $body); |
|
|
|
|
|
|
|
} elsif ($section eq 'nosource') { |
|
|
|
|
|
|
|
push(@nosource, $body); |
|
|
|
} |
|
|
|
} |
|
|
|
} elsif ($tag eq '/rdf:Description') { |
|
|
|
} elsif ($tag eq '/rdf:Description') { |
|
|
|
|
|
|
|
|
|
|
|
@ -661,6 +675,8 @@ sub get_index ($$$) { |
|
|
|
depends => [ @bprereq ], |
|
|
|
depends => [ @bprereq ], |
|
|
|
keeps => [ @prereq ], |
|
|
|
keeps => [ @prereq ], |
|
|
|
conflicts => [ @conflicts ], |
|
|
|
conflicts => [ @conflicts ], |
|
|
|
|
|
|
|
nosource => [ @source ], |
|
|
|
|
|
|
|
nosource => [ @nosource ], |
|
|
|
desc => $desc, |
|
|
|
desc => $desc, |
|
|
|
platform => $platform, |
|
|
|
platform => $platform, |
|
|
|
prefix => $prefix |
|
|
|
prefix => $prefix |
|
|
|
@ -720,16 +736,18 @@ sub get_index ($$$) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$rec = { |
|
|
|
$rec = { |
|
|
|
href => (relurl($url, undef, $href))[0], |
|
|
|
href => (relurl($url, undef, $href))[0], |
|
|
|
name => $name, |
|
|
|
name => $name, |
|
|
|
version => $version, |
|
|
|
version => $version, |
|
|
|
release => $release, |
|
|
|
release => $release, |
|
|
|
platform => xel($_->{'Platform'}), |
|
|
|
platform => xel($_->{'Platform'}), |
|
|
|
prefix => xel($_->{'Prefixes'}), |
|
|
|
prefix => xel($_->{'Prefixes'}), |
|
|
|
depends => with_list($_->{'BuildPreReq'}, $with), |
|
|
|
depends => with_list($_->{'BuildPreReq'}, $with), |
|
|
|
keeps => with_list($_->{'PreReq'}, $with), |
|
|
|
keeps => with_list($_->{'PreReq'}, $with), |
|
|
|
conflicts => with_list($_->{'Conflicts'}, $with), |
|
|
|
conflicts => with_list($_->{'Conflicts'}, $with), |
|
|
|
desc => xel($_->{'Description'}) |
|
|
|
source => with_list($_->{'Source'}, $with), |
|
|
|
|
|
|
|
nosource => with_list($_->{'NoSource'}, $with), |
|
|
|
|
|
|
|
desc => xel($_->{'Description'}) |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
$rec->{OPTIONS} = |
|
|
|
$rec->{OPTIONS} = |
|
|
|
@ -1163,6 +1181,10 @@ sub make_dep ($$$$$$) { |
|
|
|
print "# adding ".vsn($target)." to list\n"; |
|
|
|
print "# adding ".vsn($target)." to list\n"; |
|
|
|
push(@$list, $target); |
|
|
|
push(@$list, $target); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (@{$target->{nosource}}) { |
|
|
|
|
|
|
|
print "# ATTENTION: unpackaged source '$target->{source}->[$_]'\n"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return if $conflict; |
|
|
|
return if $conflict; |
|
|
|
|
|
|
|
|
|
|
|
if (!$env->{quick} && |
|
|
|
if (!$env->{quick} && |
|
|
|
|