This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=005a8dd211ae70f6af7e2ab25d6ef5ad5c6ffdd6 commit 005a8dd211ae70f6af7e2ab25d6ef5ad5c6ffdd6 (HEAD -> main) Author: Guillem Jover <[email protected]> AuthorDate: Tue Nov 23 12:23:04 2021 +0100 Dpkg::Control::FieldsCore: Fix types allowed for field_parse_binary_source() The .changes and .buildinfo files also include the field with an optionally appended version. Fixes: commit 15a70e502505b3001670a7fe9ff6073289b9d416 Reported-by: Johannes Schauer Marin Rodrigues <[email protected]> --- scripts/Dpkg/Control/FieldsCore.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Dpkg/Control/FieldsCore.pm b/scripts/Dpkg/Control/FieldsCore.pm index 1d21a03c2..d1ef32ed5 100644 --- a/scripts/Dpkg/Control/FieldsCore.pm +++ b/scripts/Dpkg/Control/FieldsCore.pm @@ -865,12 +865,16 @@ sub field_parse_binary_source($) { if ($ctrl_type != CTRL_INDEX_PKG and $ctrl_type != CTRL_PKG_DEB and + $ctrl_type != CTRL_FILE_CHANGES and + $ctrl_type != CTRL_FILE_BUILDINFO and $ctrl_type != CTRL_FILE_STATUS) { return; } my ($source, $version); + # For .changes and .buildinfo the Source field always exists, + # and there is no Package field. if (exists $ctrl->{'Source'}) { $source = $ctrl->{'Source'}; if ($source =~ m/^([^ ]+) +\(([^)]*)\)$/) { -- Dpkg.Org's dpkg

