Przeglądaj źródła

Dpkg::Shlibs::SymbolFile::new(): do not allow undefined arch option.

Modestas Vainius 16 lat temu
rodzic
commit
64bd8420e6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      scripts/Dpkg/Shlibs/SymbolFile.pm

+ 1 - 1
scripts/Dpkg/Shlibs/SymbolFile.pm

@@ -80,7 +80,7 @@ sub new {
     my $class = ref($this) || $this;
     my $self = \%opts;
     bless $self, $class;
-    $self->{arch} = get_host_arch() unless exists $self->{arch};
+    $self->{arch} = get_host_arch() unless defined $self->{arch};
     $self->clear();
     if (exists $self->{file}) {
 	$self->load($self->{file}) if -e $self->{file};