Sfoglia il codice sorgente

dpkg-vendor: Error out when no action option is provided

It was previously giving perl warnings due to uninitialized variables.
Guillem Jover 17 anni fa
parent
commit
170fd06d35
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      scripts/dpkg-vendor.pl

+ 2 - 0
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
 # Uses $ENV{DEB_VENDOR} if set
 $vendor = get_current_vendor() unless defined($vendor);
 $vendor = get_current_vendor() unless defined($vendor);