[lintian] 01/01: Fix some uses of undef variables
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 20e66e1dfe4345d2b7b80e84624b5687f72ac76a
Author: Niels Thykier <niels@thykier.net>
Date: Wed Jul 1 19:58:53 2015 +0200
Fix some uses of undef variables
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/source-copyright.pm | 2 +-
debian/changelog | 5 +++++
helpers/coll/objdump-info-helper | 4 ++--
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/checks/source-copyright.pm b/checks/source-copyright.pm
index 2957dbd..7c1dd5d 100644
--- a/checks/source-copyright.pm
+++ b/checks/source-copyright.pm
@@ -250,7 +250,7 @@ sub _parse_dep5 {
@short_licenses_header)
=parse_license($first_para->{'license'}, 1);
for my $short_license (@short_licenses_header) {
- $required_standalone_licenses{$short_license} = 1;
+ $required_standalone_licenses{$short_license} = 0;
$short_licenses_seen{$short_license} = 1;
}
if(defined($full_license_header)) {
diff --git a/debian/changelog b/debian/changelog
index f1d6a51..10742a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,11 +11,16 @@ lintian (2.5.33) UNRELEASED; urgency=medium
+ [NT] Apply patch from Felipe Sateler to warn about rcS
init scripts without a native systemd unit file.
(Closes: #790323)
+ * checks/source-copyright.pm:
+ + [NT] Fix use of undefined variable in some cases.
* data/spelling/corrections-multiword:
+ [JW] Correct spelling for "GNU Public Licence".
(Closes: #790369)
+ * helpers/coll/objdump-info-helper:
+ + [NT] Fix use of undefined variable in some cases.
+
* reporting/templates/*.tmpl:
+ [NT] Change from XHTML 1.1 to HTML5.
diff --git a/helpers/coll/objdump-info-helper b/helpers/coll/objdump-info-helper
index 97c07e5..fea0e42 100755
--- a/helpers/coll/objdump-info-helper
+++ b/helpers/coll/objdump-info-helper
@@ -173,9 +173,9 @@ while (my $line = <$readelf>) {
}
$value =~ s/^(?:Shared library|Library soname): \[(.*)\]/$1/;
print " $type $value\n";
- } elsif ($line =~ m/^\s*[0-9A-F]+: \s+ \S+ \s* (?:\(\S+\))? (?:\s|\Z)/xi
+ } elsif ($line =~ m/^\s*[0-9a-f]+: \s* \S+ \s* (?:\(\S+\))? (?:\s|\Z)/xi
and $section eq 'VS') {
- while ($line =~ m/([0-9A-F]+h?)\s*(?:\((\S+)\))?(?:\s|\Z)/gci) {
+ while ($line =~ m/([0-9a-f]+h?)\s*(?:\((\S+)\))?(?:\s|\Z)/gci) {
my ($vernum, $verstring) = ($1, $2);
$verstring ||= '';
if ($vernum =~ m/h$/) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: