From 16058e77e06a5e49f042d86622b66bba3a6d6247 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 28 Jul 2012 00:21:35 +0200 Subject: [PATCH] Add support for removing some files from the package --- auto_debuild.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auto_debuild.py b/auto_debuild.py index 37d8443..90d616d 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -163,7 +163,11 @@ def createDebianFiles(config): r.dh += ['--parallel'] r.rules['builddeb'] = [safeCall(['dh_builddeb', "--destdir="+debDir])] # passing this gobally to dh results in weird problems (like stuff being installed there, and not in the package...) r.rules['auto_test'] = [] + # installation rule r.rules['auto_install'] = [safeCall(['dh_auto_install', '--destdir=debian/'+binaryName])] # install everything into the binary package + if 'binarySkipFiles' in config: + r.rules['auto_install'].append(safeCall(['cd', 'debian/'+binaryName]) + " && " + + safeCall(['rm'] + config['binarySkipFiles'])) # for debug packages if dbgPackage: r.rules['strip'] = [safeCall(['dh_strip', '--dbg-package='+binaryName+"-dbg"])] # put debug files in appropriate package -- 2.30.2