Changeset 1208


Ignore:
Timestamp:
Oct 24, 2008, 5:47:21 AM (15 years ago)
Author:
broder
Message:

Small fix in the code to parse the debian/control and debian/changelog
files in sipb-xen-base's setup.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-base/setup.py

    r1206 r1208  
    11#!/usr/bin/python
    22
    3 import os
     3from os import path
    44from debian_bundle.changelog import Changelog
    55from debian_bundle.deb822 import Deb822
     
    77from setuptools import setup
    88
    9 version = Changelog(open(os.path.join(__file__, 'debian/changelog')).read()).\
     9version = Changelog(open(path.join(path.dirname(__file__), 'debian/changelog')).read()).\
    1010    get_version().full_version
    1111
    12 maintainer_full = Deb822(open(os.path.join(__file__, 'debian/control')))['Maintainer']
     12maintainer_full = Deb822(open(path.join(path.dirname(__file__), 'debian/control')))['Maintainer']
    1313maintainer, maintainer_email = parseaddr(maintainer_full)
    1414
     
    1919    maintainer_email=maintainer_full,
    2020   
     21    packages = ['invirt'],
    2122    package_dir = {'': 'python'},
    2223    scripts=['scripts/invirt-getconf', 'scripts/invirt-reload']
Note: See TracChangeset for help on using the changeset viewer.