X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=charisma;h=9638d89325db551074ca60501102c247d0c54d43;hb=38806c25d1afeb9f48dbd5550c3e8a60120e2bcc;hp=cc92de44917dcbbf6bce6fc5f9f599780ee31f97;hpb=c846e77a848d60dd115f00faa0d9a854161d99eb;p=dak.git diff --git a/charisma b/charisma index cc92de44..9638d893 100755 --- a/charisma +++ b/charisma @@ -1,8 +1,8 @@ #!/usr/bin/env python # Generate Maintainers file used by e.g. the Debian Bug Tracking System -# Copyright (C) 2000, 2001, 2002 James Troup -# $Id: charisma,v 1.15 2002-10-16 02:47:32 troup Exp $ +# Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup +# $Id: charisma,v 1.17 2004-03-11 00:20:51 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -117,7 +117,7 @@ def main(): source_id = binary[1]; version = binary[3]; # Use the source maintainer first; falling back on the binary maintainer as a last resort only - if source_id != 0 and source_id != None: + if source_id: maintainer = get_maintainer_from_source(source_id); else: maintainer = get_maintainer(binary[2]); @@ -132,7 +132,7 @@ def main(): for filename in extra_files: file = utils.open_file(filename); for line in file.readlines(): - line = utils.re_comments.sub('', line[:-1]).strip(); + line = utils.re_comments.sub('', line).strip(); if line == "": continue; split = line.split();