summaryrefslogtreecommitdiffstats
path: root/encap/tools/bcfg2-python-apt/Makefile
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-08-06 16:32:03 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-08-06 16:32:03 +0000
commitca2512a466de0382edbd64bad4184504d9a44029 (patch)
tree5083213be3f776c83d4b5e11183862c545749044 /encap/tools/bcfg2-python-apt/Makefile
parent39ab351aee7bb86fa90450edc0ab75cdf705728f (diff)
downloadbcfg2-ca2512a466de0382edbd64bad4184504d9a44029.tar.gz
bcfg2-ca2512a466de0382edbd64bad4184504d9a44029.tar.bz2
bcfg2-ca2512a466de0382edbd64bad4184504d9a44029.zip
Need older version for Debian Sarge
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2049 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/tools/bcfg2-python-apt/Makefile')
-rw-r--r--encap/tools/bcfg2-python-apt/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/encap/tools/bcfg2-python-apt/Makefile b/encap/tools/bcfg2-python-apt/Makefile
index 929bc97ec..0e4740002 100644
--- a/encap/tools/bcfg2-python-apt/Makefile
+++ b/encap/tools/bcfg2-python-apt/Makefile
@@ -12,7 +12,13 @@ export EPKG
MKENCAP = ${BASEDIR}/bin/mkencap
export MKENCAP
+APTMAJOR := $(shell apt-get --version | head -1 | cut -c 7)
+
+ifeq ($(APTMAJOR),5)
+PYTHON-APT = bcfg2-python-apt-0.5.10
+else ifeq ($(APTMAJOR),6)
PYTHON-APT = bcfg2-python-apt-0.6.19
+endif
.ep.installed : # Clean, compile and install an encap package
@printf "***** START .ep.installed for |$*| ***** \n"