From bb8e13c683c105ddf66e22ca36ba243999f7d629 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 12 Dec 2009 11:05:12 -0600 Subject: [PATCH] Adding support for building .deb --- Makefile | 3 +++ support/builddeb.py | 2 +- support/py2deb.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 00b1947..8d93fba 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,9 @@ package: $(OBJ) mkdir -p $(BUILD_PATH)/mer cp -R $(BUILD_PATH)/generic/* $(BUILD_PATH)/mer cd $(BUILD_PATH)/mer ; python builddeb.py mer + mkdir -p $(BUILD_PATH)/debian + cp -R $(BUILD_PATH)/generic/* $(BUILD_PATH)/debian + cd $(BUILD_PATH)/debian ; python builddeb.py debian upload: package dput fremantle-extras-builder $(BUILD_PATH)/fremantle/$(PROJECT_NAME)*.changes diff --git a/support/builddeb.py b/support/builddeb.py index c6e2d49..4402c2e 100755 --- a/support/builddeb.py +++ b/support/builddeb.py @@ -244,7 +244,7 @@ def build_package(distribution): print p.generate( version="%s-%s" % (__version__, __build__), changelog=__changelog__, - build=False, + build=True, tar=True, changes=True, dsc=True, diff --git a/support/py2deb.py b/support/py2deb.py index 59426c7..d1eac8a 100644 --- a/support/py2deb.py +++ b/support/py2deb.py @@ -192,7 +192,7 @@ def py2changes(params): shutil.move(l[0],tar) ret.append(tar) - l=glob("%(TEMP)s/%(name)s*.changes" % params) + l=glob("%(TEMP)s/%(name)s*_*_*.changes" % params) if len(l)!=1: raise Py2debException("don't find source package changes") tar = os.path.basename(l[0]) -- 1.7.9.5