Use DEB_HOST_ARCH_CPU instead of DEB_HOST_ARCH
authorJames Clarke <jrtc27@jrtc27.com>
Thu, 24 Sep 2015 17:22:20 +0000 (18:22 +0100)
committerSamuel Thibault <sthibault@debian.org>
Mon, 28 Sep 2015 23:32:02 +0000 (01:32 +0200)
and thus treat *-{i386,amd64} as x86

debian/changelog
debian/rules

index 478df65..d57d547 100644 (file)
@@ -1,3 +1,11 @@
+os-prober (1.67) UNRELEASED; urgency=medium
+
+  [ James Clarke ]
+  * rules: Use DEB_HOST_ARCH_CPU instead of DEB_HOST_ARCH, and thus treat
+    *-{i386,amd64} as x86
+
+ -- Samuel Thibault <sthibault@debian.org>  Tue, 29 Sep 2015 01:31:03 +0200
+
 os-prober (1.66) unstable; urgency=medium
 
   * Add -a flag to grep -qs for Windows Vista detection. It appears the
index 63a5932..81e9ad9 100755 (executable)
@@ -5,8 +5,8 @@
 %:
        dh $@
 
-ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
-ifneq (,$(findstring :$(ARCH):,:i386:amd64:))
+ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+ifneq (,$(filter i386 amd64,$(ARCH)))
 ARCH=x86
 endif