minideblib.DpkgChangelog
index
minideblib/DpkgChangelog.py

# -*- coding: UTF-8 -*-
# vim: sw=4 ts=4 expandtab ai
#
DpkgChangelog.py
#
# This module implements parser for Debian changelog files
#
# Copyright (C) 2005,2006 Alexandr Kanevskiy
#
# Contact: Alexandr Kanevskiy <packages@bifh.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA
#
# $Id: DpkgChangelog.py 98 2008-04-02 20:02:59Z kad $

 
Modules
       
minideblib.DpkgVersion
cStringIO
re
rfc822
types

 
Classes
       
exceptions.Exception(exceptions.BaseException)
DpkgChangelogException
DpkgChangelog
DpkgChangelogEntry

 
class DpkgChangelog
    Simple class to repsresent Debian changlog
 
  Methods defined here:
__init__(self)
parse_changelog(self, changelog, since_ver=None)
Parses changelog argument (could be file or string)
and represents it's content as array of DpkgChangelogEntry

 
class DpkgChangelogEntry
    Simple class to represent a single changelog entry. The list of
attributes in the entry header is stored in the attributes map. The
timestamp associated with the changes are stored in time.mktime()
comptabile tuple format in the
date member.
 
  Methods defined here:
__init__(self)
add_entry(self, entry)
Utility function to add a changelog entry. Also takes care
of extracting the bugs closed by this change and adding them to
the self.bugsfixed array.

 
class DpkgChangelogException(exceptions.Exception)
    
Method resolution order:
DpkgChangelogException
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, msg)
__repr__(self)
__str__(self)

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x81419a0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message
exception message

 
Data
        __all__ = ['DpkgChangelog', 'DpkgChangelogEntry', 'DpkgChangelogException']
__revision__ = 'r98'