summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHéctor Orón Martínez <zumbi@debian.org>2018-03-05 01:24:07 +0100
committerHéctor Orón Martínez <zumbi@debian.org>2019-09-01 01:59:08 +0200
commit6adf830df033b527ca593184f4ff226659ac4075 (patch)
tree697f30264b88a283a8a4c9052e90fdf2aab6073d
parentc4a6acb5bbad3b0c4e45cb0e1c9d6ab0a774f39c (diff)
dsc: keep everything
Debian package build dependencies allow for direct or indirect build cycles, when doing a full distribution build in OBS this means keeping the keep list gets very tedious very quickly. Adjust the default keep processing such that for Debian (dsc) builds everything is kept by default Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by: Héctor Orón Martínez <zumbi@debian.org> Forwarded: https://github.com/openSUSE/obs-build/pull/342 Last-Update: 2018-08-30 Gbp-Pq: Name 0005-dsc-keep-everything.patch
-rw-r--r--Build.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build.pm b/Build.pm
index 14ff8fd..72d8413 100644
--- a/Build.pm
+++ b/Build.pm
@@ -566,7 +566,9 @@ sub get_build {
@directdepsend = grep {!/^-/} splice(@directdepsend, @deps + 1);
}
my @extra = (@{$config->{'required'}}, @{$config->{'support'}});
- if (@{$config->{'keep'} || []}) {
+ if ($config->{'type'} eq 'dsc') {
+ ;
+ } elsif (@{$config->{'keep'} || []}) {
my %keep = map {$_ => 1} (@deps, @{$config->{'keep'} || []}, @{$config->{'preinstall'}});
for (@{$subpacks || []}) {
next if $keep{$_};