From 56f97e3a29ef71ed95c59507d9e88c0265b7be1e Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Wed, 29 Jul 2009 19:33:29 +0200 Subject: [PATCH] Remember Build-Deps and Build-Conflicts This allows us to generate a minimal Sources file for edos-builddebcheck, and even when no Sources files are arond. --- bin/wanna-build | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/bin/wanna-build b/bin/wanna-build index adeaf88..693528e 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -1219,16 +1219,7 @@ sub parse_sources { next if (defined $srcver{$name} and version_less( $version, $srcver{$name} )); $srcver{$name} = $version; - if ($buildconf) { - $buildconf = join( ", ", map { "!$_" } split( /\s*,\s*/, $buildconf )); - if ($builddep) { - $builddep .= "," . $buildconf; - } else { - $builddep = $buildconf; - } - } - $pkgs{$name}{'dep'} = defined $builddep ? $builddep : ""; $pkgs{$name}{'ver'} = $version; $pkgs{$name}{'bin'} = $binaries; my $pkg = $db{$name}; @@ -1258,6 +1249,13 @@ sub parse_sources { $pkg->{'Section'} = $section, $change++ if defined $section and (not defined($pkg->{'Section'}) or $pkg->{'Section'} ne $section); + + # Store Build-Deps and Build-Conflicts for edos-debcheck later + $pkg->{'Build-Depends'} = $builddep, $change++ + if ($pkg->{'Build-Depends'} ne $builddep); + $pkg->{'Build-Conflicts'} = $builddep, $change++ + if ($pkg->{'Build-Conflicts'} ne $buildconf); + $db{$name} = $pkg if $change; } } -- 2.39.5