diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-01-16 14:34:23 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-01-16 14:34:23 +0000 |
commit | d20f55d5a88093682ae5a0ca9271739b7598b5a4 (patch) | |
tree | 7c54cba252991f8b70fe58d82a9ba6958e46945c | |
parent | c81a8818639f49d874ac6e0f68c79cba606459ac (diff) | |
download | rpmtools-d20f55d5a88093682ae5a0ca9271739b7598b5a4.tar rpmtools-d20f55d5a88093682ae5a0ca9271739b7598b5a4.tar.gz rpmtools-d20f55d5a88093682ae5a0ca9271739b7598b5a4.tar.bz2 rpmtools-d20f55d5a88093682ae5a0ca9271739b7598b5a4.tar.xz rpmtools-d20f55d5a88093682ae5a0ca9271739b7598b5a4.zip |
Revert Titi's last commit and reindent properly
-rwxr-xr-x | gendistrib | 51 |
1 files changed, 25 insertions, 26 deletions
@@ -261,32 +261,31 @@ foreach (0..$#hdlists) { if ($e->{headers}) { # We have rpms in this media - print STDERR qq(parsing headers for "$e->{descr}"\n) unless $nooutput; - my ($start, $end) = $urpm->parse_headers(dir => $headers_dir, - headers => $e->{headers}, - dontdie => $dontdie, - silent => $nooutput); - - print STDERR "computing deps\n" unless $nooutput; - $urpm->compute_deps; - - if ($e->{noneedrebuild}) { - # No media change, nothing to write - next; - } - - print STDERR qq(building hdlist for medium "$e->{descr}"\n) unless $nooutput; - $urpm->build_hdlist(start => $start, - end => $end, - dir => $headers_dir, - hdlist => $temp_hdlist, - ratio => 9); - system('/bin/mv', $temp_hdlist, $e->{hdlist}); - - print STDERR qq(building synthesis for medium "$e->{descr}"\n) unless $nooutput; - $urpm->build_synthesis(start => $start, - end => $end, - synthesis => $e->{synthesis}); + print STDERR qq(parsing headers for "$e->{descr}"\n) unless $nooutput; + my ($start, $end) = $urpm->parse_headers(dir => $headers_dir, + headers => $e->{headers}, + dontdie => $dontdie, + silent => $nooutput); + + print STDERR "computing deps\n" unless $nooutput; + $urpm->compute_deps; + + # No media change, nothing to write + next if $e->{noneedrebuild}; + + print STDERR qq(building hdlist for medium "$e->{descr}"\n) unless $nooutput; + unlink $temp_hdlist; + $urpm->build_hdlist(start => $start, + end => $end, + dir => $headers_dir, + hdlist => $temp_hdlist, + ratio => 9); + system('/bin/mv', $temp_hdlist, $e->{hdlist}); + + print STDERR qq(building synthesis for medium "$e->{descr}"\n) unless $nooutput; + $urpm->build_synthesis(start => $start, + end => $end, + synthesis => $e->{synthesis}); } else { # no rpm, creating empty but valid index my $pack = MDV::Packdrakeng->new(archive => $temp_hdlist); |