I'm still working on reproducing this, but I'm not sure I agree with your analysis of what pkgdetails is doing. The relevant bit of code is:
$in = 1 if (/^Package: (.*)$/ && grep {$_ eq $1} @ARGV);
and that condition is true if the text after "Package: " is equal to any element of @ARGV.
I'm still working on reproducing this, but I'm not sure I agree with your analysis of what pkgdetails is doing. The relevant bit of code is:
$in = 1 if (/^Package: (.*)$/ && grep {$_ eq $1} @ARGV);
and that condition is true if the text after "Package: " is equal to any element of @ARGV.