summaryrefslogtreecommitdiff
path: root/scripts/dpkg-vendor.pl
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2009-05-10 19:59:25 +0200
committerGuillem Jover <guillem@debian.org>2009-05-10 19:59:25 +0200
commit170fd06d3573238bab92594afe4d49b61bf77407 (patch)
treee4e63d77c9fd5abccfbc051cb31f24abababaada /scripts/dpkg-vendor.pl
parent289c179ef6d91ad4daec4abff7762d5b17a010c9 (diff)
downloaddpkg-170fd06d3573238bab92594afe4d49b61bf77407.tar.gz
dpkg-vendor: Error out when no action option is provided
It was previously giving perl warnings due to uninitialized variables.
Diffstat (limited to 'scripts/dpkg-vendor.pl')
-rwxr-xr-xscripts/dpkg-vendor.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/dpkg-vendor.pl b/scripts/dpkg-vendor.pl
index f010e6e74..64bcb3281 100755
--- a/scripts/dpkg-vendor.pl
+++ b/scripts/dpkg-vendor.pl
@@ -78,6 +78,8 @@ while (@ARGV) {
}
}
+usageerr(_g("need an action option")) unless defined($action);
+
# Uses $ENV{DEB_VENDOR} if set
$vendor = get_current_vendor() unless defined($vendor);