summaryrefslogtreecommitdiff
path: root/scripts/dpkg-genbuildinfo.pl
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-02-06 03:12:37 +0100
committerGuillem Jover <guillem@debian.org>2017-02-26 19:36:28 +0100
commit896a740cfe9f774bf266b1f94027a91a1072a12e (patch)
treebea3db7b384953c45ac629c901ea14c5c5bc6f83 /scripts/dpkg-genbuildinfo.pl
parentd3c4079b124e592d3ab072c842da7b75fe937174 (diff)
downloaddpkg-896a740cfe9f774bf266b1f94027a91a1072a12e.tar.gz
dpkg-genbuildinfo: Handle unmatched virtual arch-qualified packages
The dependency traversal code is currently broken, and this mostly papers over the issue. Properly fixing this involves changes all over the place, which would be too intrusive for this series. We should handle this gracefully, instead of letting perl die. Closes: #849944
Diffstat (limited to 'scripts/dpkg-genbuildinfo.pl')
-rwxr-xr-xscripts/dpkg-genbuildinfo.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/dpkg-genbuildinfo.pl b/scripts/dpkg-genbuildinfo.pl
index 03cf75c30..699cc3c68 100755
--- a/scripts/dpkg-genbuildinfo.pl
+++ b/scripts/dpkg-genbuildinfo.pl
@@ -213,6 +213,7 @@ sub collect_installed_builddeps {
# installed package of the right architecture.
deps_iterate($new_deps, sub {
my $dep = shift;
+ return unless defined $facts->{pkg}->{$dep->{package}};
$dep->{archqual} //= $architecture
if any { $_[0]->{architecture} eq $architecture }, @{$facts->{pkg}->{$dep->{package}}};
1;