From 9fe922131a398d47eb69ed5895d1b392684adbbe Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pjm@nac.net>
Date: Sun, 29 Jan 2012 21:20:07 -0500
Subject: Write correct "Architecture" to control files.

---
(limited to 'src/oh-gencontrol')

diff --git a/src/oh-gencontrol b/src/oh-gencontrol
index c8209b6..a4062b2 100644
--- a/src/oh-gencontrol
+++ b/src/oh-gencontrol
@@ -20,6 +20,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 . @@LIBDIR@@/opkhelper/controlfields
+. @@LIBDIR@@/opkhelper/architecture
 
 print_usage()
 {
@@ -106,8 +107,8 @@ gen_control_bin()
 	copy_required_field Source ${control}
 	copy_required_field Version ${control}
 
-	# TODO: Handle architecture.
-	{ printf 'Architecture: ' && oh_get_field ${binpkg} Architecture;} \
+	# Handle architecture.
+	{ printf 'Architecture: ' && oh_get_package_architecture ${binpkg};} \
 		>> ${control}
 	[ ${?} -eq 1 ] && missing_field Architecture
 
--
cgit v0.9.1