------------------------------------------------------------
revno: 2092
committer: Rene Engelhard <r...@debian.org>
branch nick: debian
timestamp: Wed 2010-09-15 19:31:02 +0200
message:
  use dpkg-vendor if available
modified:
  rules
=== modified file 'rules'
--- a/rules     2010-09-14 18:29:48 +0000
+++ b/rules     2010-09-15 17:31:02 +0000
@@ -34,7 +34,7 @@
 
 OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DIST := $(shell lsb_release -is)
+DIST := $(shell if [ -x /usr/bin/dpkg-vendor ]; then dpkg-vendor --query 
Vendor; else lsb_release -is; fi)
 DISTREL := $(shell lsb_release -cs)
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

Reply via email to