diff options
author | Guillem Jover <guillem@debian.org> | 2009-05-10 19:59:25 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2009-05-10 19:59:25 +0200 |
commit | 170fd06d3573238bab92594afe4d49b61bf77407 (patch) | |
tree | e4e63d77c9fd5abccfbc051cb31f24abababaada /scripts | |
parent | 289c179ef6d91ad4daec4abff7762d5b17a010c9 (diff) | |
download | dpkg-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')
-rwxr-xr-x | scripts/dpkg-vendor.pl | 2 |
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); |