diff options
author | Guillem Jover <guillem@debian.org> | 2014-10-11 17:28:28 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-10-12 06:08:00 +0200 |
commit | 8509ed25cc643a93bfc8beaecfe2f4de7d584f9a (patch) | |
tree | 070f738611ae77901e9c6c502a3d392aa7a20013 /scripts/dpkg-architecture.pl | |
parent | 6f1097093f9a0db8b0cebf77a567e222a854c86c (diff) | |
download | dpkg-8509ed25cc643a93bfc8beaecfe2f4de7d584f9a.tar.gz |
dpkg-architecture: Initialize DEB_TARGET_ARCH variable w/o DEB_HOST_ARCH
Because the code did not state that the DEB_TARGET_ARCH requires the
DEB_HOST_ARCH variable to be set, it was getting undefined values.
Just initialize to the host value w/o assuming it has already been set.
Diffstat (limited to 'scripts/dpkg-architecture.pl')
-rwxr-xr-x | scripts/dpkg-architecture.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dpkg-architecture.pl b/scripts/dpkg-architecture.pl index 831405819..dcc300ff4 100755 --- a/scripts/dpkg-architecture.pl +++ b/scripts/dpkg-architecture.pl @@ -297,7 +297,7 @@ if (action_needs(DEB_HOST | DEB_GNU_INFO)) { if (action_needs(DEB_TARGET)) { if ($req_target_arch eq '') { - $v{DEB_TARGET_ARCH} = $v{DEB_HOST_ARCH}; + $v{DEB_TARGET_ARCH} = $req_host_arch || get_raw_host_arch(); } else { $v{DEB_TARGET_ARCH} = $req_target_arch; } |