diff options
author | Guido Günther <agx@sigxcpu.org> | 2010-09-03 21:50:42 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-09-24 17:43:26 +0200 |
commit | e4e112bde13d79d4648b7f366c726a64577fd83b (patch) | |
tree | ac60aff2bf22280b64859bc52037476ba407d4a6 /setup.py | |
parent | 55abf2002d7f51aeafe11070fe47b9da0dcfbf1c (diff) |
Hook into apt pipeline
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -3,9 +3,24 @@ from distutils.core import setup +data_files = [] + +try: + import lsb_release + if lsb_release.get_distro_information()['ID'] in [ 'Debian' ]: + data_files = [('../etc/apt/apt.conf.d/', + ['apt/50whatmaps_apt']), + ('../etc/apt/apt.conf.d/', + ['apt/20services']), + ] +except ImportError: + pass + setup(name = "whatmaps", author = 'Guido Günther', author_email = 'agx@sigxcpu.org', - scripts = [ 'whatmaps' ] + data_files = data_files, + scripts = [ 'whatmaps' ], ) +# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: |