Просмотр исходного кода

Dpkg::Arch: Do not shadow $gcc_host_gnu_type inside get_raw_host_arch

Guillem Jover лет назад: 18
Родитель
Сommit
ba38305d44
2 измененных файлов с 6 добавлено и 1 удалено
  1. 5 0
      ChangeLog
  2. 1 1
      scripts/Dpkg/Arch.pm

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2007-11-24  Guillem Jover  <guillem@debian.org>
+
+	* scripts/Dpkg/Arch.pm (get_raw_host_arch): Do not shadow
+	$gcc_host_gnu_type with a local variable.
+
 2007-11-24  Guillem Jover  <guillem@debian.org>
 
 	* scripts/dpkg-scanpackages.pl: Use parenthesis to force the

+ 1 - 1
scripts/Dpkg/Arch.pm

@@ -63,7 +63,7 @@ my %debarch_to_debtriplet;
     {
 	return $host_arch if defined $host_arch;
 
-	my $gcc_host_gnu_type = get_gcc_host_gnu_type();
+	$gcc_host_gnu_type = get_gcc_host_gnu_type();
 
 	if ($gcc_host_gnu_type eq '') {
 	    warning(_g("Couldn't determine gcc system type, falling back to " .