aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-07-27 08:30:39 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-07-27 08:30:39 +0000
commit77c4f8446ab30751957d22d00a3fe7831ad0084f (patch)
treef035a439b6639f5c7b3021a71baf87f5199b8875
parentf6c4e6af24e27bba62c21d408703867b40fe5f8e (diff)
downloadrpmdrake-77c4f8446ab30751957d22d00a3fe7831ad0084f.tar
rpmdrake-77c4f8446ab30751957d22d00a3fe7831ad0084f.tar.gz
rpmdrake-77c4f8446ab30751957d22d00a3fe7831ad0084f.tar.bz2
rpmdrake-77c4f8446ab30751957d22d00a3fe7831ad0084f.tar.xz
rpmdrake-77c4f8446ab30751957d22d00a3fe7831ad0084f.zip
Don't take into account empty command-line options
-rwxr-xr-xrpmdrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index a92b7623..5bff3e8e 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -69,7 +69,7 @@ foreach (@ARGV) {
if ($val =~ /=/) {
my ($name, $values) = split /=/, $val;
my @values = split /,/, $values;
- $options{$name} = \@values;
+ $options{$name} = \@values if @values;
} else {
$options{$val} = 1;
}