summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNima Talebi <nima@it.net.au>2009-12-20 11:19:42 +1100
committerNima Talebi <nima@it.net.au>2010-01-06 16:19:23 +1100
commit5d26fd4b09109664198539618a8679685fa18607 (patch)
treed68893ed712c11a9f16443de9daef652abb2de20 /Makefile
parent5a2df385687e947d9d34859ff2b772b56accb627 (diff)
downloadpython-dmidecode-5d26fd4b09109664198539618a8679685fa18607.tar.gz
python-dmidecode-5d26fd4b09109664198539618a8679685fa18607.tar.xz
python-dmidecode-5d26fd4b09109664198539618a8679685fa18607.zip
Changes necessary to keep Debian packages sane
Both setup.py and setup-dbg.py install the same file, namely: /usr/share/pyshared/dmidecode.py This generated Bug#561904. This commit closes this bug.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6793970..fce6c72 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,8 @@ VERSION := $(shell cd src;python -c "from setup_common import *; print get_versi
PACKAGE := python-dmidecode
PY_VER := $(shell python -c 'import sys; print "%d.%d"%sys.version_info[0:2]')
PY := python$(PY_VER)
-SO = build/lib.linux-$(shell uname -m)-$(PY_VER)/dmidecodemod.so
+SO := build/lib.linux-$(shell uname -m)-$(PY_VER)/dmidecodemod.so
+SHELL := /bin/bash
###############################################################################
.PHONY: build dmidump install uninstall clean tarball rpm unit version
@@ -65,3 +66,8 @@ version:
@echo "python-dmidecode: $(VERSION)"
@echo "python version: $(PY_VER) ($(PY))"
+conflicts:
+ @comm -12 \
+ <(dpkg-deb -c ../../DPKGS/python-dmidecode_$(VERSION)-1_amd64.deb | awk '$$NF!~/\/$$/{print$$NF}'|sort) \
+ <(dpkg-deb -c ../../DPKGS/python-dmidecode-dbg_$(VERSION)-1_amd64.deb | awk '$$NF!~/\/$$/{print$$NF}'|sort)
+