The following commit has been merged in the master branch:
commit 3a448918387d7ec65a48282103285757c834ebfa
Author: Niels Thykier <[email protected]>
Date: Wed Nov 30 13:05:41 2011 +0100
Fixed two missing "unless defined" cases
Signed-off-by: Niels Thykier <[email protected]>
diff --git a/checks/cruft b/checks/cruft
index 9704f67..25ee03b 100644
--- a/checks/cruft
+++ b/checks/cruft
@@ -105,7 +105,7 @@ if (-e "$droot/files" and not -z "$droot/files") {
my $version = $info->field('version');
# If the version field is missing, assume it to be a native,
# maintainer upload as it is probably the most likely case.
-$version = '0-1';
+$version = '0-1' unless defined $version;
if ($info->native) {
if ($version =~ /-/ and $version !~ /-0\.[^-]+$/) {
tag 'native-package-with-dash-version';
diff --git a/checks/shared-libs b/checks/shared-libs
index da529c4..35fc437 100644
--- a/checks/shared-libs
+++ b/checks/shared-libs
@@ -259,7 +259,7 @@ my $provides = $pkg;
$provides .= "( = $version)" if defined $version;
# Assume the version to be a non-native version to avoid
# uninitialization warnings later.
-$version = '0-1';
+$version = '0-1' unless defined $version;
if (defined $info->field('provides')) {
$provides .= ', ' . $info->field('provides');
}
--
Debian package checker
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]