diff options
author | Francois Pons <fpons@mandriva.com> | 2002-01-22 18:39:51 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-01-22 18:39:51 +0000 |
commit | b086eb0cb9b6ffeee0f04bf991d5420640d7b784 (patch) | |
tree | 33bf5113a01ec88299c0c0f9c7cad72a64617eab /gendistrib | |
parent | 362a3293bf2f2da458dce726e1c4281533464784 (diff) | |
download | rpmtools-b086eb0cb9b6ffeee0f04bf991d5420640d7b784.tar rpmtools-b086eb0cb9b6ffeee0f04bf991d5420640d7b784.tar.gz rpmtools-b086eb0cb9b6ffeee0f04bf991d5420640d7b784.tar.bz2 rpmtools-b086eb0cb9b6ffeee0f04bf991d5420640d7b784.tar.xz rpmtools-b086eb0cb9b6ffeee0f04bf991d5420640d7b784.zip |
new 4.1 version.4.1
Diffstat (limited to 'gendistrib')
-rwxr-xr-x | gendistrib | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -134,6 +134,33 @@ unless ($nobasefiles) { open F, ">$compss" or die "unable to write compss file $compss"; $params->write_compss(\*F); close F; + + #- generate all synthesis file. + foreach (@hdlists) { + if ($_->[0] =~ /(.*)\/hdlist(.*)/) { + my $synthesis = "$1/synthesis.hdlist$2"; + my $params_sense = new rpmtools(qw(sense)); + + print STDERR "reading $_->[0]\n"; + $params_sense->read_hdlists($_->[0]); + + #- use existing provides just generated to + #- add missing entries in each package provides list, + #- this is really $params and not $params_sense. + foreach my $file (keys %{$params->{provides}}) { + $file =~ /^\// or next; + foreach (keys %{$params->{provides}{$file} || {}}) { + my $pkg = $params_sense->{info}{$_} or next; + push @{$pkg->{provides}}, $file; + } + } + + open F, "| gzip -9 >$synthesis"; + print STDERR "writing $synthesis\n"; + $params_sense->write_synthesis_hdlist(\*F); + close F or print STDERR "unable to build $synthesis\n"; + } + } } else { if (-r $provides) { print STDERR "using existing $provides file\n"; |