From ba7f076392d78e5715342826511cb585256b04a1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 25 Jun 2012 18:17:43 +0000 Subject: (build_synthesis) drop compatibility with perl-URPM < 1.48 (ie < 2007.1) --- genhdlist2 | 7 ------- 1 file changed, 7 deletions(-) (limited to 'genhdlist2') diff --git a/genhdlist2 b/genhdlist2 index 89e16bd..1273d80 100644 --- a/genhdlist2 +++ b/genhdlist2 @@ -374,19 +374,12 @@ sub add_pkg_header { sub build_synthesis { my ($urpm, $synthesis, $synthesis_filter) = @_; - # for compatibility with perl-URPM < 1.48 (ie < 2007.1), - # creating empty synthesis by hand. This is only needed to run on old distros - if (@{$urpm->{depslist}} == 0) { - open(my $hsynth, "| $synthesis_filter > $synthesis"); - close $hsynth or die "Can't create empty synthesis $synthesis: $!\n"; - } else { $urpm->build_synthesis( start => 0, end => $#{$urpm->{depslist}}, synthesis => $synthesis, filter => $synthesis_filter, ) or die "build_synthesis failed (disk full?)\n"; - } } sub remove_versioned_media_info { -- cgit v1.2.1