minideblib.DpkgDebPackage
index
minideblib/DpkgDebPackage.py

# -*- coding: UTF-8 -*-
# vim: sw=4 ts=4 expandtab ai
#
DpkgDebPackage.py
#
# This module implements class for accessing .deb packages
#
# 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: DpkgDebPackage.py 49 2007-01-10 16:14:37Z kad $

 
Modules
       
commands
errno
glob
gzip
os
re
shutil
tempfile

 
Classes
       
exceptions.Exception(exceptions.BaseException)
DpkgDebPackageException
minideblib.LoggableObject.LoggableObject
DpkgDebPackage

 
class DpkgDebPackage(minideblib.LoggableObject.LoggableObject)
    This class represent complete information about Debian binary package
 
  Methods defined here:
__init__(self, pkgfile=None)
path -- path to .deb package
extract_contents(self, filenames)
Extracts partial contents of Debian package to temporary directory
load(self, path=None, getfiles=True, getchanges='both')
Loads .deb file for processing
load_changes(self, getchanges='both')
Reads changelog and/or news information into memory
load_contents(self)
Reads contents of .deb file into memory
load_control(self)
Reads control information into memory

 
class DpkgDebPackageException(exceptions.Exception)
    General exception which could be raised by DpkgDebPackage
 
 
Method resolution order:
DpkgDebPackageException
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__ = ['DpkgDebPackage', 'DpkgDebPackageException']
__revision__ = 'r49'