- use automake defined pkgdata dir for lua script dir instead of hardcoded
[apt.git] / python / apt.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3 # This file is compatible with both classic and new-style classes.
4
5 import _apt
6
7 def _swig_setattr(self,class_type,name,value):
8     if (name == "this"):
9         if isinstance(value, class_type):
10             self.__dict__[name] = value.this
11             if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
12             del value.thisown
13             return
14     method = class_type.__swig_setmethods__.get(name,None)
15     if method: return method(self,value)
16     self.__dict__[name] = value
17
18 def _swig_getattr(self,class_type,name):
19     method = class_type.__swig_getmethods__.get(name,None)
20     if method: return method(self)
21     raise AttributeError,name
22
23 import types
24 try:
25     _object = types.ObjectType
26     _newclass = 1
27 except AttributeError:
28     class _object : pass
29     _newclass = 0
30 del types
31
32
33
34 pkgInit = _apt.pkgInit
35 APT_PKG_MAJOR = _apt.APT_PKG_MAJOR
36 APT_PKG_MINOR = _apt.APT_PKG_MINOR
37 APT_PKG_RELEASE = _apt.APT_PKG_RELEASE
38
39 pkgInitConfig = _apt.pkgInitConfig
40
41 pkgInitSystem = _apt.pkgInitSystem
42 class pkgCache(_object):
43     __swig_setmethods__ = {}
44     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCache, name, value)
45     __swig_getmethods__ = {}
46     __getattr__ = lambda self, name: _swig_getattr(self, pkgCache, name)
47     def __repr__(self):
48         return "<C pkgCache instance at %s>" % (self.this,)
49     DepDepends = _apt.pkgCache_DepDepends
50     DepPreDepends = _apt.pkgCache_DepPreDepends
51     DepSuggests = _apt.pkgCache_DepSuggests
52     DepRecommends = _apt.pkgCache_DepRecommends
53     DepConflicts = _apt.pkgCache_DepConflicts
54     DepReplaces = _apt.pkgCache_DepReplaces
55     DepObsoletes = _apt.pkgCache_DepObsoletes
56     DepOr = _apt.pkgCache_DepOr
57     DepNoOp = _apt.pkgCache_DepNoOp
58     DepLessEq = _apt.pkgCache_DepLessEq
59     DepGreaterEq = _apt.pkgCache_DepGreaterEq
60     DepLess = _apt.pkgCache_DepLess
61     DepGreater = _apt.pkgCache_DepGreater
62     DepEquals = _apt.pkgCache_DepEquals
63     DepNotEquals = _apt.pkgCache_DepNotEquals
64     StateImportant = _apt.pkgCache_StateImportant
65     StateRequired = _apt.pkgCache_StateRequired
66     StateStandard = _apt.pkgCache_StateStandard
67     StateOptional = _apt.pkgCache_StateOptional
68     StateExtra = _apt.pkgCache_StateExtra
69     StateUnknown = _apt.pkgCache_StateUnknown
70     StateInstall = _apt.pkgCache_StateInstall
71     StateHold = _apt.pkgCache_StateHold
72     StateDeInstall = _apt.pkgCache_StateDeInstall
73     StatePurge = _apt.pkgCache_StatePurge
74     StateOk = _apt.pkgCache_StateOk
75     StateReInstReq = _apt.pkgCache_StateReInstReq
76     StateHoldInst = _apt.pkgCache_StateHoldInst
77     StateHoldReInstReq = _apt.pkgCache_StateHoldReInstReq
78     StateNotInstalled = _apt.pkgCache_StateNotInstalled
79     StateUnPacked = _apt.pkgCache_StateUnPacked
80     StateHalfConfigured = _apt.pkgCache_StateHalfConfigured
81     StateHalfInstalled = _apt.pkgCache_StateHalfInstalled
82     StateConfigFiles = _apt.pkgCache_StateConfigFiles
83     StateInstalled = _apt.pkgCache_StateInstalled
84     FlagAuto = _apt.pkgCache_FlagAuto
85     FlagEssential = _apt.pkgCache_FlagEssential
86     FlagImportant = _apt.pkgCache_FlagImportant
87     FlagNotSource = _apt.pkgCache_FlagNotSource
88     FlagNotAutomatic = _apt.pkgCache_FlagNotAutomatic
89     __swig_setmethods__["HeaderP"] = _apt.pkgCache_HeaderP_set
90     __swig_getmethods__["HeaderP"] = _apt.pkgCache_HeaderP_get
91     if _newclass:HeaderP = property(_apt.pkgCache_HeaderP_get, _apt.pkgCache_HeaderP_set)
92     __swig_setmethods__["PkgP"] = _apt.pkgCache_PkgP_set
93     __swig_getmethods__["PkgP"] = _apt.pkgCache_PkgP_get
94     if _newclass:PkgP = property(_apt.pkgCache_PkgP_get, _apt.pkgCache_PkgP_set)
95     __swig_setmethods__["VerFileP"] = _apt.pkgCache_VerFileP_set
96     __swig_getmethods__["VerFileP"] = _apt.pkgCache_VerFileP_get
97     if _newclass:VerFileP = property(_apt.pkgCache_VerFileP_get, _apt.pkgCache_VerFileP_set)
98     __swig_setmethods__["PkgFileP"] = _apt.pkgCache_PkgFileP_set
99     __swig_getmethods__["PkgFileP"] = _apt.pkgCache_PkgFileP_get
100     if _newclass:PkgFileP = property(_apt.pkgCache_PkgFileP_get, _apt.pkgCache_PkgFileP_set)
101     __swig_setmethods__["VerP"] = _apt.pkgCache_VerP_set
102     __swig_getmethods__["VerP"] = _apt.pkgCache_VerP_get
103     if _newclass:VerP = property(_apt.pkgCache_VerP_get, _apt.pkgCache_VerP_set)
104     __swig_setmethods__["ProvideP"] = _apt.pkgCache_ProvideP_set
105     __swig_getmethods__["ProvideP"] = _apt.pkgCache_ProvideP_get
106     if _newclass:ProvideP = property(_apt.pkgCache_ProvideP_get, _apt.pkgCache_ProvideP_set)
107     __swig_setmethods__["DepP"] = _apt.pkgCache_DepP_set
108     __swig_getmethods__["DepP"] = _apt.pkgCache_DepP_get
109     if _newclass:DepP = property(_apt.pkgCache_DepP_get, _apt.pkgCache_DepP_set)
110     __swig_setmethods__["StringItemP"] = _apt.pkgCache_StringItemP_set
111     __swig_getmethods__["StringItemP"] = _apt.pkgCache_StringItemP_get
112     if _newclass:StringItemP = property(_apt.pkgCache_StringItemP_get, _apt.pkgCache_StringItemP_set)
113     __swig_setmethods__["StrP"] = _apt.pkgCache_StrP_set
114     __swig_getmethods__["StrP"] = _apt.pkgCache_StrP_get
115     if _newclass:StrP = property(_apt.pkgCache_StrP_get, _apt.pkgCache_StrP_set)
116     def ReMap(*args): return _apt.pkgCache_ReMap(*args)
117     def Sync(*args): return _apt.pkgCache_Sync(*args)
118     def GetMap(*args): return _apt.pkgCache_GetMap(*args)
119     def DataEnd(*args): return _apt.pkgCache_DataEnd(*args)
120     def Hash(*args): return _apt.pkgCache_Hash(*args)
121     def Priority(*args): return _apt.pkgCache_Priority(*args)
122     def FindPkg(*args): return _apt.pkgCache_FindPkg(*args)
123     def FindPackage(*args): return _apt.pkgCache_FindPackage(*args)
124     def Head(*args): return _apt.pkgCache_Head(*args)
125     def PkgIter(*args): return _apt.pkgCache_PkgIter(*args)
126     def FileIter(*args): return _apt.pkgCache_FileIter(*args)
127     __swig_setmethods__["VS"] = _apt.pkgCache_VS_set
128     __swig_getmethods__["VS"] = _apt.pkgCache_VS_get
129     if _newclass:VS = property(_apt.pkgCache_VS_get, _apt.pkgCache_VS_set)
130     __swig_getmethods__["CompTypeDeb"] = lambda x: _apt.pkgCache_CompTypeDeb
131     if _newclass:CompTypeDeb = staticmethod(_apt.pkgCache_CompTypeDeb)
132     __swig_getmethods__["CompType"] = lambda x: _apt.pkgCache_CompType
133     if _newclass:CompType = staticmethod(_apt.pkgCache_CompType)
134     __swig_getmethods__["DepType"] = lambda x: _apt.pkgCache_DepType
135     if _newclass:DepType = staticmethod(_apt.pkgCache_DepType)
136     def __init__(self, *args):
137         _swig_setattr(self, pkgCache, 'this', _apt.new_pkgCache(*args))
138         _swig_setattr(self, pkgCache, 'thisown', 1)
139     def __del__(self, destroy=_apt.delete_pkgCache):
140         try:
141             if self.thisown: destroy(self)
142         except: pass
143
144 class pkgCachePtr(pkgCache):
145     def __init__(self, this):
146         _swig_setattr(self, pkgCache, 'this', this)
147         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCache, 'thisown', 0)
148         _swig_setattr(self, pkgCache,self.__class__,pkgCache)
149 _apt.pkgCache_swigregister(pkgCachePtr)
150 cvar = _apt.cvar
151
152 pkgCache_CompTypeDeb = _apt.pkgCache_CompTypeDeb
153
154 pkgCache_CompType = _apt.pkgCache_CompType
155
156 pkgCache_DepType = _apt.pkgCache_DepType
157
158 class pkgCacheHeader(_object):
159     __swig_setmethods__ = {}
160     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheHeader, name, value)
161     __swig_getmethods__ = {}
162     __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheHeader, name)
163     def __repr__(self):
164         return "<C pkgCache::Header instance at %s>" % (self.this,)
165     __swig_setmethods__["Signature"] = _apt.pkgCacheHeader_Signature_set
166     __swig_getmethods__["Signature"] = _apt.pkgCacheHeader_Signature_get
167     if _newclass:Signature = property(_apt.pkgCacheHeader_Signature_get, _apt.pkgCacheHeader_Signature_set)
168     __swig_setmethods__["MajorVersion"] = _apt.pkgCacheHeader_MajorVersion_set
169     __swig_getmethods__["MajorVersion"] = _apt.pkgCacheHeader_MajorVersion_get
170     if _newclass:MajorVersion = property(_apt.pkgCacheHeader_MajorVersion_get, _apt.pkgCacheHeader_MajorVersion_set)
171     __swig_setmethods__["MinorVersion"] = _apt.pkgCacheHeader_MinorVersion_set
172     __swig_getmethods__["MinorVersion"] = _apt.pkgCacheHeader_MinorVersion_get
173     if _newclass:MinorVersion = property(_apt.pkgCacheHeader_MinorVersion_get, _apt.pkgCacheHeader_MinorVersion_set)
174     __swig_setmethods__["Dirty"] = _apt.pkgCacheHeader_Dirty_set
175     __swig_getmethods__["Dirty"] = _apt.pkgCacheHeader_Dirty_get
176     if _newclass:Dirty = property(_apt.pkgCacheHeader_Dirty_get, _apt.pkgCacheHeader_Dirty_set)
177     __swig_setmethods__["HasFileDeps"] = _apt.pkgCacheHeader_HasFileDeps_set
178     __swig_getmethods__["HasFileDeps"] = _apt.pkgCacheHeader_HasFileDeps_get
179     if _newclass:HasFileDeps = property(_apt.pkgCacheHeader_HasFileDeps_get, _apt.pkgCacheHeader_HasFileDeps_set)
180     __swig_setmethods__["OptionsHash"] = _apt.pkgCacheHeader_OptionsHash_set
181     __swig_getmethods__["OptionsHash"] = _apt.pkgCacheHeader_OptionsHash_get
182     if _newclass:OptionsHash = property(_apt.pkgCacheHeader_OptionsHash_get, _apt.pkgCacheHeader_OptionsHash_set)
183     __swig_setmethods__["HeaderSz"] = _apt.pkgCacheHeader_HeaderSz_set
184     __swig_getmethods__["HeaderSz"] = _apt.pkgCacheHeader_HeaderSz_get
185     if _newclass:HeaderSz = property(_apt.pkgCacheHeader_HeaderSz_get, _apt.pkgCacheHeader_HeaderSz_set)
186     __swig_setmethods__["PackageSz"] = _apt.pkgCacheHeader_PackageSz_set
187     __swig_getmethods__["PackageSz"] = _apt.pkgCacheHeader_PackageSz_get
188     if _newclass:PackageSz = property(_apt.pkgCacheHeader_PackageSz_get, _apt.pkgCacheHeader_PackageSz_set)
189     __swig_setmethods__["PackageFileSz"] = _apt.pkgCacheHeader_PackageFileSz_set
190     __swig_getmethods__["PackageFileSz"] = _apt.pkgCacheHeader_PackageFileSz_get
191     if _newclass:PackageFileSz = property(_apt.pkgCacheHeader_PackageFileSz_get, _apt.pkgCacheHeader_PackageFileSz_set)
192     __swig_setmethods__["VersionSz"] = _apt.pkgCacheHeader_VersionSz_set
193     __swig_getmethods__["VersionSz"] = _apt.pkgCacheHeader_VersionSz_get
194     if _newclass:VersionSz = property(_apt.pkgCacheHeader_VersionSz_get, _apt.pkgCacheHeader_VersionSz_set)
195     __swig_setmethods__["DependencySz"] = _apt.pkgCacheHeader_DependencySz_set
196     __swig_getmethods__["DependencySz"] = _apt.pkgCacheHeader_DependencySz_get
197     if _newclass:DependencySz = property(_apt.pkgCacheHeader_DependencySz_get, _apt.pkgCacheHeader_DependencySz_set)
198     __swig_setmethods__["ProvidesSz"] = _apt.pkgCacheHeader_ProvidesSz_set
199     __swig_getmethods__["ProvidesSz"] = _apt.pkgCacheHeader_ProvidesSz_get
200     if _newclass:ProvidesSz = property(_apt.pkgCacheHeader_ProvidesSz_get, _apt.pkgCacheHeader_ProvidesSz_set)
201     __swig_setmethods__["VerFileSz"] = _apt.pkgCacheHeader_VerFileSz_set
202     __swig_getmethods__["VerFileSz"] = _apt.pkgCacheHeader_VerFileSz_get
203     if _newclass:VerFileSz = property(_apt.pkgCacheHeader_VerFileSz_get, _apt.pkgCacheHeader_VerFileSz_set)
204     __swig_setmethods__["PackageCount"] = _apt.pkgCacheHeader_PackageCount_set
205     __swig_getmethods__["PackageCount"] = _apt.pkgCacheHeader_PackageCount_get
206     if _newclass:PackageCount = property(_apt.pkgCacheHeader_PackageCount_get, _apt.pkgCacheHeader_PackageCount_set)
207     __swig_setmethods__["VersionCount"] = _apt.pkgCacheHeader_VersionCount_set
208     __swig_getmethods__["VersionCount"] = _apt.pkgCacheHeader_VersionCount_get
209     if _newclass:VersionCount = property(_apt.pkgCacheHeader_VersionCount_get, _apt.pkgCacheHeader_VersionCount_set)
210     __swig_setmethods__["DependsCount"] = _apt.pkgCacheHeader_DependsCount_set
211     __swig_getmethods__["DependsCount"] = _apt.pkgCacheHeader_DependsCount_get
212     if _newclass:DependsCount = property(_apt.pkgCacheHeader_DependsCount_get, _apt.pkgCacheHeader_DependsCount_set)
213     __swig_setmethods__["PackageFileCount"] = _apt.pkgCacheHeader_PackageFileCount_set
214     __swig_getmethods__["PackageFileCount"] = _apt.pkgCacheHeader_PackageFileCount_get
215     if _newclass:PackageFileCount = property(_apt.pkgCacheHeader_PackageFileCount_get, _apt.pkgCacheHeader_PackageFileCount_set)
216     __swig_setmethods__["VerFileCount"] = _apt.pkgCacheHeader_VerFileCount_set
217     __swig_getmethods__["VerFileCount"] = _apt.pkgCacheHeader_VerFileCount_get
218     if _newclass:VerFileCount = property(_apt.pkgCacheHeader_VerFileCount_get, _apt.pkgCacheHeader_VerFileCount_set)
219     __swig_setmethods__["ProvidesCount"] = _apt.pkgCacheHeader_ProvidesCount_set
220     __swig_getmethods__["ProvidesCount"] = _apt.pkgCacheHeader_ProvidesCount_get
221     if _newclass:ProvidesCount = property(_apt.pkgCacheHeader_ProvidesCount_get, _apt.pkgCacheHeader_ProvidesCount_set)
222     __swig_setmethods__["FileList"] = _apt.pkgCacheHeader_FileList_set
223     __swig_getmethods__["FileList"] = _apt.pkgCacheHeader_FileList_get
224     if _newclass:FileList = property(_apt.pkgCacheHeader_FileList_get, _apt.pkgCacheHeader_FileList_set)
225     __swig_setmethods__["StringList"] = _apt.pkgCacheHeader_StringList_set
226     __swig_getmethods__["StringList"] = _apt.pkgCacheHeader_StringList_get
227     if _newclass:StringList = property(_apt.pkgCacheHeader_StringList_get, _apt.pkgCacheHeader_StringList_set)
228     __swig_setmethods__["VerSysName"] = _apt.pkgCacheHeader_VerSysName_set
229     __swig_getmethods__["VerSysName"] = _apt.pkgCacheHeader_VerSysName_get
230     if _newclass:VerSysName = property(_apt.pkgCacheHeader_VerSysName_get, _apt.pkgCacheHeader_VerSysName_set)
231     __swig_setmethods__["Architecture"] = _apt.pkgCacheHeader_Architecture_set
232     __swig_getmethods__["Architecture"] = _apt.pkgCacheHeader_Architecture_get
233     if _newclass:Architecture = property(_apt.pkgCacheHeader_Architecture_get, _apt.pkgCacheHeader_Architecture_set)
234     __swig_setmethods__["MaxVerFileSize"] = _apt.pkgCacheHeader_MaxVerFileSize_set
235     __swig_getmethods__["MaxVerFileSize"] = _apt.pkgCacheHeader_MaxVerFileSize_get
236     if _newclass:MaxVerFileSize = property(_apt.pkgCacheHeader_MaxVerFileSize_get, _apt.pkgCacheHeader_MaxVerFileSize_set)
237     __swig_setmethods__["Pools"] = _apt.pkgCacheHeader_Pools_set
238     __swig_getmethods__["Pools"] = _apt.pkgCacheHeader_Pools_get
239     if _newclass:Pools = property(_apt.pkgCacheHeader_Pools_get, _apt.pkgCacheHeader_Pools_set)
240     __swig_setmethods__["HashTable"] = _apt.pkgCacheHeader_HashTable_set
241     __swig_getmethods__["HashTable"] = _apt.pkgCacheHeader_HashTable_get
242     if _newclass:HashTable = property(_apt.pkgCacheHeader_HashTable_get, _apt.pkgCacheHeader_HashTable_set)
243     def CheckSizes(*args): return _apt.pkgCacheHeader_CheckSizes(*args)
244     def __init__(self, *args):
245         _swig_setattr(self, pkgCacheHeader, 'this', _apt.new_pkgCacheHeader(*args))
246         _swig_setattr(self, pkgCacheHeader, 'thisown', 1)
247     def __del__(self, destroy=_apt.delete_pkgCacheHeader):
248         try:
249             if self.thisown: destroy(self)
250         except: pass
251
252 class pkgCacheHeaderPtr(pkgCacheHeader):
253     def __init__(self, this):
254         _swig_setattr(self, pkgCacheHeader, 'this', this)
255         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheHeader, 'thisown', 0)
256         _swig_setattr(self, pkgCacheHeader,self.__class__,pkgCacheHeader)
257 _apt.pkgCacheHeader_swigregister(pkgCacheHeaderPtr)
258
259 class pkgCachePackage(_object):
260     __swig_setmethods__ = {}
261     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCachePackage, name, value)
262     __swig_getmethods__ = {}
263     __getattr__ = lambda self, name: _swig_getattr(self, pkgCachePackage, name)
264     def __repr__(self):
265         return "<C pkgCache::Package instance at %s>" % (self.this,)
266     __swig_setmethods__["Name"] = _apt.pkgCachePackage_Name_set
267     __swig_getmethods__["Name"] = _apt.pkgCachePackage_Name_get
268     if _newclass:Name = property(_apt.pkgCachePackage_Name_get, _apt.pkgCachePackage_Name_set)
269     __swig_setmethods__["VersionList"] = _apt.pkgCachePackage_VersionList_set
270     __swig_getmethods__["VersionList"] = _apt.pkgCachePackage_VersionList_get
271     if _newclass:VersionList = property(_apt.pkgCachePackage_VersionList_get, _apt.pkgCachePackage_VersionList_set)
272     __swig_setmethods__["CurrentVer"] = _apt.pkgCachePackage_CurrentVer_set
273     __swig_getmethods__["CurrentVer"] = _apt.pkgCachePackage_CurrentVer_get
274     if _newclass:CurrentVer = property(_apt.pkgCachePackage_CurrentVer_get, _apt.pkgCachePackage_CurrentVer_set)
275     __swig_setmethods__["Section"] = _apt.pkgCachePackage_Section_set
276     __swig_getmethods__["Section"] = _apt.pkgCachePackage_Section_get
277     if _newclass:Section = property(_apt.pkgCachePackage_Section_get, _apt.pkgCachePackage_Section_set)
278     __swig_setmethods__["NextPackage"] = _apt.pkgCachePackage_NextPackage_set
279     __swig_getmethods__["NextPackage"] = _apt.pkgCachePackage_NextPackage_get
280     if _newclass:NextPackage = property(_apt.pkgCachePackage_NextPackage_get, _apt.pkgCachePackage_NextPackage_set)
281     __swig_setmethods__["RevDepends"] = _apt.pkgCachePackage_RevDepends_set
282     __swig_getmethods__["RevDepends"] = _apt.pkgCachePackage_RevDepends_get
283     if _newclass:RevDepends = property(_apt.pkgCachePackage_RevDepends_get, _apt.pkgCachePackage_RevDepends_set)
284     __swig_setmethods__["ProvidesList"] = _apt.pkgCachePackage_ProvidesList_set
285     __swig_getmethods__["ProvidesList"] = _apt.pkgCachePackage_ProvidesList_get
286     if _newclass:ProvidesList = property(_apt.pkgCachePackage_ProvidesList_get, _apt.pkgCachePackage_ProvidesList_set)
287     __swig_setmethods__["SelectedState"] = _apt.pkgCachePackage_SelectedState_set
288     __swig_getmethods__["SelectedState"] = _apt.pkgCachePackage_SelectedState_get
289     if _newclass:SelectedState = property(_apt.pkgCachePackage_SelectedState_get, _apt.pkgCachePackage_SelectedState_set)
290     __swig_setmethods__["InstState"] = _apt.pkgCachePackage_InstState_set
291     __swig_getmethods__["InstState"] = _apt.pkgCachePackage_InstState_get
292     if _newclass:InstState = property(_apt.pkgCachePackage_InstState_get, _apt.pkgCachePackage_InstState_set)
293     __swig_setmethods__["CurrentState"] = _apt.pkgCachePackage_CurrentState_set
294     __swig_getmethods__["CurrentState"] = _apt.pkgCachePackage_CurrentState_get
295     if _newclass:CurrentState = property(_apt.pkgCachePackage_CurrentState_get, _apt.pkgCachePackage_CurrentState_set)
296     __swig_setmethods__["ID"] = _apt.pkgCachePackage_ID_set
297     __swig_getmethods__["ID"] = _apt.pkgCachePackage_ID_get
298     if _newclass:ID = property(_apt.pkgCachePackage_ID_get, _apt.pkgCachePackage_ID_set)
299     __swig_setmethods__["Flags"] = _apt.pkgCachePackage_Flags_set
300     __swig_getmethods__["Flags"] = _apt.pkgCachePackage_Flags_get
301     if _newclass:Flags = property(_apt.pkgCachePackage_Flags_get, _apt.pkgCachePackage_Flags_set)
302     def __init__(self, *args):
303         _swig_setattr(self, pkgCachePackage, 'this', _apt.new_pkgCachePackage(*args))
304         _swig_setattr(self, pkgCachePackage, 'thisown', 1)
305     def __del__(self, destroy=_apt.delete_pkgCachePackage):
306         try:
307             if self.thisown: destroy(self)
308         except: pass
309
310 class pkgCachePackagePtr(pkgCachePackage):
311     def __init__(self, this):
312         _swig_setattr(self, pkgCachePackage, 'this', this)
313         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCachePackage, 'thisown', 0)
314         _swig_setattr(self, pkgCachePackage,self.__class__,pkgCachePackage)
315 _apt.pkgCachePackage_swigregister(pkgCachePackagePtr)
316
317 class pkgCachePackageFile(_object):
318     __swig_setmethods__ = {}
319     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCachePackageFile, name, value)
320     __swig_getmethods__ = {}
321     __getattr__ = lambda self, name: _swig_getattr(self, pkgCachePackageFile, name)
322     def __repr__(self):
323         return "<C pkgCache::PackageFile instance at %s>" % (self.this,)
324     __swig_setmethods__["FileName"] = _apt.pkgCachePackageFile_FileName_set
325     __swig_getmethods__["FileName"] = _apt.pkgCachePackageFile_FileName_get
326     if _newclass:FileName = property(_apt.pkgCachePackageFile_FileName_get, _apt.pkgCachePackageFile_FileName_set)
327     __swig_setmethods__["Archive"] = _apt.pkgCachePackageFile_Archive_set
328     __swig_getmethods__["Archive"] = _apt.pkgCachePackageFile_Archive_get
329     if _newclass:Archive = property(_apt.pkgCachePackageFile_Archive_get, _apt.pkgCachePackageFile_Archive_set)
330     __swig_setmethods__["Component"] = _apt.pkgCachePackageFile_Component_set
331     __swig_getmethods__["Component"] = _apt.pkgCachePackageFile_Component_get
332     if _newclass:Component = property(_apt.pkgCachePackageFile_Component_get, _apt.pkgCachePackageFile_Component_set)
333     __swig_setmethods__["Version"] = _apt.pkgCachePackageFile_Version_set
334     __swig_getmethods__["Version"] = _apt.pkgCachePackageFile_Version_get
335     if _newclass:Version = property(_apt.pkgCachePackageFile_Version_get, _apt.pkgCachePackageFile_Version_set)
336     __swig_setmethods__["Origin"] = _apt.pkgCachePackageFile_Origin_set
337     __swig_getmethods__["Origin"] = _apt.pkgCachePackageFile_Origin_get
338     if _newclass:Origin = property(_apt.pkgCachePackageFile_Origin_get, _apt.pkgCachePackageFile_Origin_set)
339     __swig_setmethods__["Label"] = _apt.pkgCachePackageFile_Label_set
340     __swig_getmethods__["Label"] = _apt.pkgCachePackageFile_Label_get
341     if _newclass:Label = property(_apt.pkgCachePackageFile_Label_get, _apt.pkgCachePackageFile_Label_set)
342     __swig_setmethods__["Architecture"] = _apt.pkgCachePackageFile_Architecture_set
343     __swig_getmethods__["Architecture"] = _apt.pkgCachePackageFile_Architecture_get
344     if _newclass:Architecture = property(_apt.pkgCachePackageFile_Architecture_get, _apt.pkgCachePackageFile_Architecture_set)
345     __swig_setmethods__["Site"] = _apt.pkgCachePackageFile_Site_set
346     __swig_getmethods__["Site"] = _apt.pkgCachePackageFile_Site_get
347     if _newclass:Site = property(_apt.pkgCachePackageFile_Site_get, _apt.pkgCachePackageFile_Site_set)
348     __swig_setmethods__["IndexType"] = _apt.pkgCachePackageFile_IndexType_set
349     __swig_getmethods__["IndexType"] = _apt.pkgCachePackageFile_IndexType_get
350     if _newclass:IndexType = property(_apt.pkgCachePackageFile_IndexType_get, _apt.pkgCachePackageFile_IndexType_set)
351     __swig_setmethods__["Size"] = _apt.pkgCachePackageFile_Size_set
352     __swig_getmethods__["Size"] = _apt.pkgCachePackageFile_Size_get
353     if _newclass:Size = property(_apt.pkgCachePackageFile_Size_get, _apt.pkgCachePackageFile_Size_set)
354     __swig_setmethods__["Flags"] = _apt.pkgCachePackageFile_Flags_set
355     __swig_getmethods__["Flags"] = _apt.pkgCachePackageFile_Flags_get
356     if _newclass:Flags = property(_apt.pkgCachePackageFile_Flags_get, _apt.pkgCachePackageFile_Flags_set)
357     __swig_setmethods__["NextFile"] = _apt.pkgCachePackageFile_NextFile_set
358     __swig_getmethods__["NextFile"] = _apt.pkgCachePackageFile_NextFile_get
359     if _newclass:NextFile = property(_apt.pkgCachePackageFile_NextFile_get, _apt.pkgCachePackageFile_NextFile_set)
360     __swig_setmethods__["ID"] = _apt.pkgCachePackageFile_ID_set
361     __swig_getmethods__["ID"] = _apt.pkgCachePackageFile_ID_get
362     if _newclass:ID = property(_apt.pkgCachePackageFile_ID_get, _apt.pkgCachePackageFile_ID_set)
363     __swig_setmethods__["mtime"] = _apt.pkgCachePackageFile_mtime_set
364     __swig_getmethods__["mtime"] = _apt.pkgCachePackageFile_mtime_get
365     if _newclass:mtime = property(_apt.pkgCachePackageFile_mtime_get, _apt.pkgCachePackageFile_mtime_set)
366     def __init__(self, *args):
367         _swig_setattr(self, pkgCachePackageFile, 'this', _apt.new_pkgCachePackageFile(*args))
368         _swig_setattr(self, pkgCachePackageFile, 'thisown', 1)
369     def __del__(self, destroy=_apt.delete_pkgCachePackageFile):
370         try:
371             if self.thisown: destroy(self)
372         except: pass
373
374 class pkgCachePackageFilePtr(pkgCachePackageFile):
375     def __init__(self, this):
376         _swig_setattr(self, pkgCachePackageFile, 'this', this)
377         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCachePackageFile, 'thisown', 0)
378         _swig_setattr(self, pkgCachePackageFile,self.__class__,pkgCachePackageFile)
379 _apt.pkgCachePackageFile_swigregister(pkgCachePackageFilePtr)
380
381 class pkgCacheVerFile(_object):
382     __swig_setmethods__ = {}
383     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheVerFile, name, value)
384     __swig_getmethods__ = {}
385     __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheVerFile, name)
386     def __repr__(self):
387         return "<C pkgCache::VerFile instance at %s>" % (self.this,)
388     __swig_setmethods__["File"] = _apt.pkgCacheVerFile_File_set
389     __swig_getmethods__["File"] = _apt.pkgCacheVerFile_File_get
390     if _newclass:File = property(_apt.pkgCacheVerFile_File_get, _apt.pkgCacheVerFile_File_set)
391     __swig_setmethods__["NextFile"] = _apt.pkgCacheVerFile_NextFile_set
392     __swig_getmethods__["NextFile"] = _apt.pkgCacheVerFile_NextFile_get
393     if _newclass:NextFile = property(_apt.pkgCacheVerFile_NextFile_get, _apt.pkgCacheVerFile_NextFile_set)
394     __swig_setmethods__["Offset"] = _apt.pkgCacheVerFile_Offset_set
395     __swig_getmethods__["Offset"] = _apt.pkgCacheVerFile_Offset_get
396     if _newclass:Offset = property(_apt.pkgCacheVerFile_Offset_get, _apt.pkgCacheVerFile_Offset_set)
397     __swig_setmethods__["Size"] = _apt.pkgCacheVerFile_Size_set
398     __swig_getmethods__["Size"] = _apt.pkgCacheVerFile_Size_get
399     if _newclass:Size = property(_apt.pkgCacheVerFile_Size_get, _apt.pkgCacheVerFile_Size_set)
400     def __init__(self, *args):
401         _swig_setattr(self, pkgCacheVerFile, 'this', _apt.new_pkgCacheVerFile(*args))
402         _swig_setattr(self, pkgCacheVerFile, 'thisown', 1)
403     def __del__(self, destroy=_apt.delete_pkgCacheVerFile):
404         try:
405             if self.thisown: destroy(self)
406         except: pass
407
408 class pkgCacheVerFilePtr(pkgCacheVerFile):
409     def __init__(self, this):
410         _swig_setattr(self, pkgCacheVerFile, 'this', this)
411         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheVerFile, 'thisown', 0)
412         _swig_setattr(self, pkgCacheVerFile,self.__class__,pkgCacheVerFile)
413 _apt.pkgCacheVerFile_swigregister(pkgCacheVerFilePtr)
414
415 class pkgCacheVersion(_object):
416     __swig_setmethods__ = {}
417     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheVersion, name, value)
418     __swig_getmethods__ = {}
419     __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheVersion, name)
420     def __repr__(self):
421         return "<C pkgCache::Version instance at %s>" % (self.this,)
422     __swig_setmethods__["VerStr"] = _apt.pkgCacheVersion_VerStr_set
423     __swig_getmethods__["VerStr"] = _apt.pkgCacheVersion_VerStr_get
424     if _newclass:VerStr = property(_apt.pkgCacheVersion_VerStr_get, _apt.pkgCacheVersion_VerStr_set)
425     __swig_setmethods__["Section"] = _apt.pkgCacheVersion_Section_set
426     __swig_getmethods__["Section"] = _apt.pkgCacheVersion_Section_get
427     if _newclass:Section = property(_apt.pkgCacheVersion_Section_get, _apt.pkgCacheVersion_Section_set)
428     __swig_setmethods__["Arch"] = _apt.pkgCacheVersion_Arch_set
429     __swig_getmethods__["Arch"] = _apt.pkgCacheVersion_Arch_get
430     if _newclass:Arch = property(_apt.pkgCacheVersion_Arch_get, _apt.pkgCacheVersion_Arch_set)
431     __swig_setmethods__["FileList"] = _apt.pkgCacheVersion_FileList_set
432     __swig_getmethods__["FileList"] = _apt.pkgCacheVersion_FileList_get
433     if _newclass:FileList = property(_apt.pkgCacheVersion_FileList_get, _apt.pkgCacheVersion_FileList_set)
434     __swig_setmethods__["NextVer"] = _apt.pkgCacheVersion_NextVer_set
435     __swig_getmethods__["NextVer"] = _apt.pkgCacheVersion_NextVer_get
436     if _newclass:NextVer = property(_apt.pkgCacheVersion_NextVer_get, _apt.pkgCacheVersion_NextVer_set)
437     __swig_setmethods__["DependsList"] = _apt.pkgCacheVersion_DependsList_set
438     __swig_getmethods__["DependsList"] = _apt.pkgCacheVersion_DependsList_get
439     if _newclass:DependsList = property(_apt.pkgCacheVersion_DependsList_get, _apt.pkgCacheVersion_DependsList_set)
440     __swig_setmethods__["ParentPkg"] = _apt.pkgCacheVersion_ParentPkg_set
441     __swig_getmethods__["ParentPkg"] = _apt.pkgCacheVersion_ParentPkg_get
442     if _newclass:ParentPkg = property(_apt.pkgCacheVersion_ParentPkg_get, _apt.pkgCacheVersion_ParentPkg_set)
443     __swig_setmethods__["ProvidesList"] = _apt.pkgCacheVersion_ProvidesList_set
444     __swig_getmethods__["ProvidesList"] = _apt.pkgCacheVersion_ProvidesList_get
445     if _newclass:ProvidesList = property(_apt.pkgCacheVersion_ProvidesList_get, _apt.pkgCacheVersion_ProvidesList_set)
446     __swig_setmethods__["Size"] = _apt.pkgCacheVersion_Size_set
447     __swig_getmethods__["Size"] = _apt.pkgCacheVersion_Size_get
448     if _newclass:Size = property(_apt.pkgCacheVersion_Size_get, _apt.pkgCacheVersion_Size_set)
449     __swig_setmethods__["InstalledSize"] = _apt.pkgCacheVersion_InstalledSize_set
450     __swig_getmethods__["InstalledSize"] = _apt.pkgCacheVersion_InstalledSize_get
451     if _newclass:InstalledSize = property(_apt.pkgCacheVersion_InstalledSize_get, _apt.pkgCacheVersion_InstalledSize_set)
452     __swig_setmethods__["Hash"] = _apt.pkgCacheVersion_Hash_set
453     __swig_getmethods__["Hash"] = _apt.pkgCacheVersion_Hash_get
454     if _newclass:Hash = property(_apt.pkgCacheVersion_Hash_get, _apt.pkgCacheVersion_Hash_set)
455     __swig_setmethods__["ID"] = _apt.pkgCacheVersion_ID_set
456     __swig_getmethods__["ID"] = _apt.pkgCacheVersion_ID_get
457     if _newclass:ID = property(_apt.pkgCacheVersion_ID_get, _apt.pkgCacheVersion_ID_set)
458     __swig_setmethods__["Priority"] = _apt.pkgCacheVersion_Priority_set
459     __swig_getmethods__["Priority"] = _apt.pkgCacheVersion_Priority_get
460     if _newclass:Priority = property(_apt.pkgCacheVersion_Priority_get, _apt.pkgCacheVersion_Priority_set)
461     def __init__(self, *args):
462         _swig_setattr(self, pkgCacheVersion, 'this', _apt.new_pkgCacheVersion(*args))
463         _swig_setattr(self, pkgCacheVersion, 'thisown', 1)
464     def __del__(self, destroy=_apt.delete_pkgCacheVersion):
465         try:
466             if self.thisown: destroy(self)
467         except: pass
468
469 class pkgCacheVersionPtr(pkgCacheVersion):
470     def __init__(self, this):
471         _swig_setattr(self, pkgCacheVersion, 'this', this)
472         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheVersion, 'thisown', 0)
473         _swig_setattr(self, pkgCacheVersion,self.__class__,pkgCacheVersion)
474 _apt.pkgCacheVersion_swigregister(pkgCacheVersionPtr)
475
476 class pkgCacheDependency(_object):
477     __swig_setmethods__ = {}
478     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheDependency, name, value)
479     __swig_getmethods__ = {}
480     __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheDependency, name)
481     def __repr__(self):
482         return "<C pkgCache::Dependency instance at %s>" % (self.this,)
483     __swig_setmethods__["Version"] = _apt.pkgCacheDependency_Version_set
484     __swig_getmethods__["Version"] = _apt.pkgCacheDependency_Version_get
485     if _newclass:Version = property(_apt.pkgCacheDependency_Version_get, _apt.pkgCacheDependency_Version_set)
486     __swig_setmethods__["Package"] = _apt.pkgCacheDependency_Package_set
487     __swig_getmethods__["Package"] = _apt.pkgCacheDependency_Package_get
488     if _newclass:Package = property(_apt.pkgCacheDependency_Package_get, _apt.pkgCacheDependency_Package_set)
489     __swig_setmethods__["NextDepends"] = _apt.pkgCacheDependency_NextDepends_set
490     __swig_getmethods__["NextDepends"] = _apt.pkgCacheDependency_NextDepends_get
491     if _newclass:NextDepends = property(_apt.pkgCacheDependency_NextDepends_get, _apt.pkgCacheDependency_NextDepends_set)
492     __swig_setmethods__["NextRevDepends"] = _apt.pkgCacheDependency_NextRevDepends_set
493     __swig_getmethods__["NextRevDepends"] = _apt.pkgCacheDependency_NextRevDepends_get
494     if _newclass:NextRevDepends = property(_apt.pkgCacheDependency_NextRevDepends_get, _apt.pkgCacheDependency_NextRevDepends_set)
495     __swig_setmethods__["ParentVer"] = _apt.pkgCacheDependency_ParentVer_set
496     __swig_getmethods__["ParentVer"] = _apt.pkgCacheDependency_ParentVer_get
497     if _newclass:ParentVer = property(_apt.pkgCacheDependency_ParentVer_get, _apt.pkgCacheDependency_ParentVer_set)
498     __swig_setmethods__["ID"] = _apt.pkgCacheDependency_ID_set
499     __swig_getmethods__["ID"] = _apt.pkgCacheDependency_ID_get
500     if _newclass:ID = property(_apt.pkgCacheDependency_ID_get, _apt.pkgCacheDependency_ID_set)
501     __swig_setmethods__["Type"] = _apt.pkgCacheDependency_Type_set
502     __swig_getmethods__["Type"] = _apt.pkgCacheDependency_Type_get
503     if _newclass:Type = property(_apt.pkgCacheDependency_Type_get, _apt.pkgCacheDependency_Type_set)
504     __swig_setmethods__["CompareOp"] = _apt.pkgCacheDependency_CompareOp_set
505     __swig_getmethods__["CompareOp"] = _apt.pkgCacheDependency_CompareOp_get
506     if _newclass:CompareOp = property(_apt.pkgCacheDependency_CompareOp_get, _apt.pkgCacheDependency_CompareOp_set)
507     def __init__(self, *args):
508         _swig_setattr(self, pkgCacheDependency, 'this', _apt.new_pkgCacheDependency(*args))
509         _swig_setattr(self, pkgCacheDependency, 'thisown', 1)
510     def __del__(self, destroy=_apt.delete_pkgCacheDependency):
511         try:
512             if self.thisown: destroy(self)
513         except: pass
514
515 class pkgCacheDependencyPtr(pkgCacheDependency):
516     def __init__(self, this):
517         _swig_setattr(self, pkgCacheDependency, 'this', this)
518         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheDependency, 'thisown', 0)
519         _swig_setattr(self, pkgCacheDependency,self.__class__,pkgCacheDependency)
520 _apt.pkgCacheDependency_swigregister(pkgCacheDependencyPtr)
521
522 class pkgCacheProvides(_object):
523     __swig_setmethods__ = {}
524     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheProvides, name, value)
525     __swig_getmethods__ = {}
526     __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheProvides, name)
527     def __repr__(self):
528         return "<C pkgCache::Provides instance at %s>" % (self.this,)
529     __swig_setmethods__["ParentPkg"] = _apt.pkgCacheProvides_ParentPkg_set
530     __swig_getmethods__["ParentPkg"] = _apt.pkgCacheProvides_ParentPkg_get
531     if _newclass:ParentPkg = property(_apt.pkgCacheProvides_ParentPkg_get, _apt.pkgCacheProvides_ParentPkg_set)
532     __swig_setmethods__["Version"] = _apt.pkgCacheProvides_Version_set
533     __swig_getmethods__["Version"] = _apt.pkgCacheProvides_Version_get
534     if _newclass:Version = property(_apt.pkgCacheProvides_Version_get, _apt.pkgCacheProvides_Version_set)
535     __swig_setmethods__["ProvideVersion"] = _apt.pkgCacheProvides_ProvideVersion_set
536     __swig_getmethods__["ProvideVersion"] = _apt.pkgCacheProvides_ProvideVersion_get
537     if _newclass:ProvideVersion = property(_apt.pkgCacheProvides_ProvideVersion_get, _apt.pkgCacheProvides_ProvideVersion_set)
538     __swig_setmethods__["NextProvides"] = _apt.pkgCacheProvides_NextProvides_set
539     __swig_getmethods__["NextProvides"] = _apt.pkgCacheProvides_NextProvides_get
540     if _newclass:NextProvides = property(_apt.pkgCacheProvides_NextProvides_get, _apt.pkgCacheProvides_NextProvides_set)
541     __swig_setmethods__["NextPkgProv"] = _apt.pkgCacheProvides_NextPkgProv_set
542     __swig_getmethods__["NextPkgProv"] = _apt.pkgCacheProvides_NextPkgProv_get
543     if _newclass:NextPkgProv = property(_apt.pkgCacheProvides_NextPkgProv_get, _apt.pkgCacheProvides_NextPkgProv_set)
544     def __init__(self, *args):
545         _swig_setattr(self, pkgCacheProvides, 'this', _apt.new_pkgCacheProvides(*args))
546         _swig_setattr(self, pkgCacheProvides, 'thisown', 1)
547     def __del__(self, destroy=_apt.delete_pkgCacheProvides):
548         try:
549             if self.thisown: destroy(self)
550         except: pass
551
552 class pkgCacheProvidesPtr(pkgCacheProvides):
553     def __init__(self, this):
554         _swig_setattr(self, pkgCacheProvides, 'this', this)
555         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheProvides, 'thisown', 0)
556         _swig_setattr(self, pkgCacheProvides,self.__class__,pkgCacheProvides)
557 _apt.pkgCacheProvides_swigregister(pkgCacheProvidesPtr)
558
559 class pkgCacheStringItem(_object):
560     __swig_setmethods__ = {}
561     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheStringItem, name, value)
562     __swig_getmethods__ = {}
563     __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheStringItem, name)
564     def __repr__(self):
565         return "<C pkgCache::StringItem instance at %s>" % (self.this,)
566     __swig_setmethods__["String"] = _apt.pkgCacheStringItem_String_set
567     __swig_getmethods__["String"] = _apt.pkgCacheStringItem_String_get
568     if _newclass:String = property(_apt.pkgCacheStringItem_String_get, _apt.pkgCacheStringItem_String_set)
569     __swig_setmethods__["NextItem"] = _apt.pkgCacheStringItem_NextItem_set
570     __swig_getmethods__["NextItem"] = _apt.pkgCacheStringItem_NextItem_get
571     if _newclass:NextItem = property(_apt.pkgCacheStringItem_NextItem_get, _apt.pkgCacheStringItem_NextItem_set)
572     def __init__(self, *args):
573         _swig_setattr(self, pkgCacheStringItem, 'this', _apt.new_pkgCacheStringItem(*args))
574         _swig_setattr(self, pkgCacheStringItem, 'thisown', 1)
575     def __del__(self, destroy=_apt.delete_pkgCacheStringItem):
576         try:
577             if self.thisown: destroy(self)
578         except: pass
579
580 class pkgCacheStringItemPtr(pkgCacheStringItem):
581     def __init__(self, this):
582         _swig_setattr(self, pkgCacheStringItem, 'this', this)
583         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheStringItem, 'thisown', 0)
584         _swig_setattr(self, pkgCacheStringItem,self.__class__,pkgCacheStringItem)
585 _apt.pkgCacheStringItem_swigregister(pkgCacheStringItemPtr)
586
587 class pkgDepCache(_object):
588     __swig_setmethods__ = {}
589     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgDepCache, name, value)
590     __swig_getmethods__ = {}
591     __getattr__ = lambda self, name: _swig_getattr(self, pkgDepCache, name)
592     def __repr__(self):
593         return "<C pkgDepCache instance at %s>" % (self.this,)
594     DepNow = _apt.pkgDepCache_DepNow
595     DepInstall = _apt.pkgDepCache_DepInstall
596     DepCVer = _apt.pkgDepCache_DepCVer
597     DepGNow = _apt.pkgDepCache_DepGNow
598     DepGInstall = _apt.pkgDepCache_DepGInstall
599     DepGCVer = _apt.pkgDepCache_DepGCVer
600     DepNowPolicy = _apt.pkgDepCache_DepNowPolicy
601     DepNowMin = _apt.pkgDepCache_DepNowMin
602     DepInstPolicy = _apt.pkgDepCache_DepInstPolicy
603     DepInstMin = _apt.pkgDepCache_DepInstMin
604     DepCandPolicy = _apt.pkgDepCache_DepCandPolicy
605     DepCandMin = _apt.pkgDepCache_DepCandMin
606     AutoKept = _apt.pkgDepCache_AutoKept
607     Purge = _apt.pkgDepCache_Purge
608     ReInstall = _apt.pkgDepCache_ReInstall
609     NowVersion = _apt.pkgDepCache_NowVersion
610     InstallVersion = _apt.pkgDepCache_InstallVersion
611     CandidateVersion = _apt.pkgDepCache_CandidateVersion
612     ModeDelete = _apt.pkgDepCache_ModeDelete
613     ModeKeep = _apt.pkgDepCache_ModeKeep
614     ModeInstall = _apt.pkgDepCache_ModeInstall
615     def BuildGroupOrs(*args): return _apt.pkgDepCache_BuildGroupOrs(*args)
616     def UpdateVerState(*args): return _apt.pkgDepCache_UpdateVerState(*args)
617     def Head(*args): return _apt.pkgDepCache_Head(*args)
618     def PkgIter(*args): return _apt.pkgDepCache_PkgIter(*args)
619     def FindPkg(*args): return _apt.pkgDepCache_FindPkg(*args)
620     def GetCache(*args): return _apt.pkgDepCache_GetCache(*args)
621     def VS(*args): return _apt.pkgDepCache_VS(*args)
622     def GetCandidateVer(*args): return _apt.pkgDepCache_GetCandidateVer(*args)
623     def IsImportantDep(*args): return _apt.pkgDepCache_IsImportantDep(*args)
624     def GetPolicy(*args): return _apt.pkgDepCache_GetPolicy(*args)
625     def GetPkgPriority(*args): return _apt.pkgDepCache_GetPkgPriority(*args)
626     def __getitem__(*args): return _apt.pkgDepCache___getitem__(*args)
627     def MarkKeep(*args): return _apt.pkgDepCache_MarkKeep(*args)
628     def MarkDelete(*args): return _apt.pkgDepCache_MarkDelete(*args)
629     def MarkInstall(*args): return _apt.pkgDepCache_MarkInstall(*args)
630     def SetReInstall(*args): return _apt.pkgDepCache_SetReInstall(*args)
631     def SetCandidateVersion(*args): return _apt.pkgDepCache_SetCandidateVersion(*args)
632     def Update(*args): return _apt.pkgDepCache_Update(*args)
633     def UsrSize(*args): return _apt.pkgDepCache_UsrSize(*args)
634     def DebSize(*args): return _apt.pkgDepCache_DebSize(*args)
635     def DelCount(*args): return _apt.pkgDepCache_DelCount(*args)
636     def KeepCount(*args): return _apt.pkgDepCache_KeepCount(*args)
637     def InstCount(*args): return _apt.pkgDepCache_InstCount(*args)
638     def BrokenCount(*args): return _apt.pkgDepCache_BrokenCount(*args)
639     def BadCount(*args): return _apt.pkgDepCache_BadCount(*args)
640     def Init(*args): return _apt.pkgDepCache_Init(*args)
641     def __init__(self, *args):
642         _swig_setattr(self, pkgDepCache, 'this', _apt.new_pkgDepCache(*args))
643         _swig_setattr(self, pkgDepCache, 'thisown', 1)
644     def __del__(self, destroy=_apt.delete_pkgDepCache):
645         try:
646             if self.thisown: destroy(self)
647         except: pass
648
649 class pkgDepCachePtr(pkgDepCache):
650     def __init__(self, this):
651         _swig_setattr(self, pkgDepCache, 'this', this)
652         if not hasattr(self,"thisown"): _swig_setattr(self, pkgDepCache, 'thisown', 0)
653         _swig_setattr(self, pkgDepCache,self.__class__,pkgDepCache)
654 _apt.pkgDepCache_swigregister(pkgDepCachePtr)
655
656 class pkgDepCacheStateCache(_object):
657     __swig_setmethods__ = {}
658     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgDepCacheStateCache, name, value)
659     __swig_getmethods__ = {}
660     __getattr__ = lambda self, name: _swig_getattr(self, pkgDepCacheStateCache, name)
661     def __repr__(self):
662         return "<C pkgDepCache::StateCache instance at %s>" % (self.this,)
663     __swig_getmethods__["CandVersion"] = _apt.pkgDepCacheStateCache_CandVersion_get
664     if _newclass:CandVersion = property(_apt.pkgDepCacheStateCache_CandVersion_get)
665     __swig_getmethods__["CurVersion"] = _apt.pkgDepCacheStateCache_CurVersion_get
666     if _newclass:CurVersion = property(_apt.pkgDepCacheStateCache_CurVersion_get)
667     __swig_setmethods__["CandidateVer"] = _apt.pkgDepCacheStateCache_CandidateVer_set
668     __swig_getmethods__["CandidateVer"] = _apt.pkgDepCacheStateCache_CandidateVer_get
669     if _newclass:CandidateVer = property(_apt.pkgDepCacheStateCache_CandidateVer_get, _apt.pkgDepCacheStateCache_CandidateVer_set)
670     __swig_setmethods__["InstallVer"] = _apt.pkgDepCacheStateCache_InstallVer_set
671     __swig_getmethods__["InstallVer"] = _apt.pkgDepCacheStateCache_InstallVer_get
672     if _newclass:InstallVer = property(_apt.pkgDepCacheStateCache_InstallVer_get, _apt.pkgDepCacheStateCache_InstallVer_set)
673     __swig_setmethods__["Flags"] = _apt.pkgDepCacheStateCache_Flags_set
674     __swig_getmethods__["Flags"] = _apt.pkgDepCacheStateCache_Flags_get
675     if _newclass:Flags = property(_apt.pkgDepCacheStateCache_Flags_get, _apt.pkgDepCacheStateCache_Flags_set)
676     __swig_setmethods__["iFlags"] = _apt.pkgDepCacheStateCache_iFlags_set
677     __swig_getmethods__["iFlags"] = _apt.pkgDepCacheStateCache_iFlags_get
678     if _newclass:iFlags = property(_apt.pkgDepCacheStateCache_iFlags_get, _apt.pkgDepCacheStateCache_iFlags_set)
679     __swig_setmethods__["Status"] = _apt.pkgDepCacheStateCache_Status_set
680     __swig_getmethods__["Status"] = _apt.pkgDepCacheStateCache_Status_get
681     if _newclass:Status = property(_apt.pkgDepCacheStateCache_Status_get, _apt.pkgDepCacheStateCache_Status_set)
682     __swig_setmethods__["Mode"] = _apt.pkgDepCacheStateCache_Mode_set
683     __swig_getmethods__["Mode"] = _apt.pkgDepCacheStateCache_Mode_get
684     if _newclass:Mode = property(_apt.pkgDepCacheStateCache_Mode_get, _apt.pkgDepCacheStateCache_Mode_set)
685     __swig_setmethods__["DepState"] = _apt.pkgDepCacheStateCache_DepState_set
686     __swig_getmethods__["DepState"] = _apt.pkgDepCacheStateCache_DepState_get
687     if _newclass:DepState = property(_apt.pkgDepCacheStateCache_DepState_get, _apt.pkgDepCacheStateCache_DepState_set)
688     def StripEpoch(*args): return _apt.pkgDepCacheStateCache_StripEpoch(*args)
689     def Update(*args): return _apt.pkgDepCacheStateCache_Update(*args)
690     def NewInstall(*args): return _apt.pkgDepCacheStateCache_NewInstall(*args)
691     def Delete(*args): return _apt.pkgDepCacheStateCache_Delete(*args)
692     def Keep(*args): return _apt.pkgDepCacheStateCache_Keep(*args)
693     def Upgrade(*args): return _apt.pkgDepCacheStateCache_Upgrade(*args)
694     def Upgradable(*args): return _apt.pkgDepCacheStateCache_Upgradable(*args)
695     def Downgrade(*args): return _apt.pkgDepCacheStateCache_Downgrade(*args)
696     def Held(*args): return _apt.pkgDepCacheStateCache_Held(*args)
697     def NowBroken(*args): return _apt.pkgDepCacheStateCache_NowBroken(*args)
698     def InstBroken(*args): return _apt.pkgDepCacheStateCache_InstBroken(*args)
699     def Install(*args): return _apt.pkgDepCacheStateCache_Install(*args)
700     def InstVerIter(*args): return _apt.pkgDepCacheStateCache_InstVerIter(*args)
701     def CandidateVerIter(*args): return _apt.pkgDepCacheStateCache_CandidateVerIter(*args)
702     def __init__(self, *args):
703         _swig_setattr(self, pkgDepCacheStateCache, 'this', _apt.new_pkgDepCacheStateCache(*args))
704         _swig_setattr(self, pkgDepCacheStateCache, 'thisown', 1)
705     def __del__(self, destroy=_apt.delete_pkgDepCacheStateCache):
706         try:
707             if self.thisown: destroy(self)
708         except: pass
709
710 class pkgDepCacheStateCachePtr(pkgDepCacheStateCache):
711     def __init__(self, this):
712         _swig_setattr(self, pkgDepCacheStateCache, 'this', this)
713         if not hasattr(self,"thisown"): _swig_setattr(self, pkgDepCacheStateCache, 'thisown', 0)
714         _swig_setattr(self, pkgDepCacheStateCache,self.__class__,pkgDepCacheStateCache)
715 _apt.pkgDepCacheStateCache_swigregister(pkgDepCacheStateCachePtr)
716
717 class pkgCachePkgIterator(_object):
718     __swig_setmethods__ = {}
719     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCachePkgIterator, name, value)
720     __swig_getmethods__ = {}
721     __getattr__ = lambda self, name: _swig_getattr(self, pkgCachePkgIterator, name)
722     def __repr__(self):
723         return "<C pkgCache::PkgIterator instance at %s>" % (self.this,)
724     def __nonzero__(*args): return _apt.pkgCachePkgIterator___nonzero__(*args)
725     def next(*args): return _apt.pkgCachePkgIterator_next(*args)
726     def __iter__(*args): return _apt.pkgCachePkgIterator___iter__(*args)
727     NeedsNothing = _apt.pkgCachePkgIterator_NeedsNothing
728     NeedsUnpack = _apt.pkgCachePkgIterator_NeedsUnpack
729     NeedsConfigure = _apt.pkgCachePkgIterator_NeedsConfigure
730     def end(*args): return _apt.pkgCachePkgIterator_end(*args)
731     def __eq__(*args): return _apt.pkgCachePkgIterator___eq__(*args)
732     def __ne__(*args): return _apt.pkgCachePkgIterator___ne__(*args)
733     def __deref__(*args): return _apt.pkgCachePkgIterator___deref__(*args)
734     def __mul__(*args): return _apt.pkgCachePkgIterator___mul__(*args)
735     def Package(*args): return _apt.pkgCachePkgIterator_Package(*args)
736     def Cache(*args): return _apt.pkgCachePkgIterator_Cache(*args)
737     def Name(*args): return _apt.pkgCachePkgIterator_Name(*args)
738     def Section(*args): return _apt.pkgCachePkgIterator_Section(*args)
739     def Purge(*args): return _apt.pkgCachePkgIterator_Purge(*args)
740     def VersionList(*args): return _apt.pkgCachePkgIterator_VersionList(*args)
741     def CurrentVer(*args): return _apt.pkgCachePkgIterator_CurrentVer(*args)
742     def RevDependsList(*args): return _apt.pkgCachePkgIterator_RevDependsList(*args)
743     def ProvidesList(*args): return _apt.pkgCachePkgIterator_ProvidesList(*args)
744     def Index(*args): return _apt.pkgCachePkgIterator_Index(*args)
745     def State(*args): return _apt.pkgCachePkgIterator_State(*args)
746     def __init__(self, *args):
747         _swig_setattr(self, pkgCachePkgIterator, 'this', _apt.new_pkgCachePkgIterator(*args))
748         _swig_setattr(self, pkgCachePkgIterator, 'thisown', 1)
749     __swig_getmethods__["NextPackage"] = _apt.pkgCachePkgIterator_NextPackage_get
750     if _newclass:NextPackage = property(_apt.pkgCachePkgIterator_NextPackage_get)
751     __swig_getmethods__["RevDepends"] = _apt.pkgCachePkgIterator_RevDepends_get
752     if _newclass:RevDepends = property(_apt.pkgCachePkgIterator_RevDepends_get)
753     __swig_getmethods__["SelectedState"] = _apt.pkgCachePkgIterator_SelectedState_get
754     if _newclass:SelectedState = property(_apt.pkgCachePkgIterator_SelectedState_get)
755     __swig_getmethods__["InstState"] = _apt.pkgCachePkgIterator_InstState_get
756     if _newclass:InstState = property(_apt.pkgCachePkgIterator_InstState_get)
757     __swig_getmethods__["CurrentState"] = _apt.pkgCachePkgIterator_CurrentState_get
758     if _newclass:CurrentState = property(_apt.pkgCachePkgIterator_CurrentState_get)
759     __swig_getmethods__["ID"] = _apt.pkgCachePkgIterator_ID_get
760     if _newclass:ID = property(_apt.pkgCachePkgIterator_ID_get)
761     __swig_getmethods__["Flags"] = _apt.pkgCachePkgIterator_Flags_get
762     if _newclass:Flags = property(_apt.pkgCachePkgIterator_Flags_get)
763     def __del__(self, destroy=_apt.delete_pkgCachePkgIterator):
764         try:
765             if self.thisown: destroy(self)
766         except: pass
767
768 class pkgCachePkgIteratorPtr(pkgCachePkgIterator):
769     def __init__(self, this):
770         _swig_setattr(self, pkgCachePkgIterator, 'this', this)
771         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCachePkgIterator, 'thisown', 0)
772         _swig_setattr(self, pkgCachePkgIterator,self.__class__,pkgCachePkgIterator)
773 _apt.pkgCachePkgIterator_swigregister(pkgCachePkgIteratorPtr)
774
775 class pkgCacheVerIterator(_object):
776     __swig_setmethods__ = {}
777     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheVerIterator, name, value)
778     __swig_getmethods__ = {}
779     __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheVerIterator, name)
780     def __repr__(self):
781         return "<C pkgCache::VerIterator instance at %s>" % (self.this,)
782     def __nonzero__(*args): return _apt.pkgCacheVerIterator___nonzero__(*args)
783     def next(*args): return _apt.pkgCacheVerIterator_next(*args)
784     def __iter__(*args): return _apt.pkgCacheVerIterator___iter__(*args)
785     def end(*args): return _apt.pkgCacheVerIterator_end(*args)
786     def assign(*args): return _apt.pkgCacheVerIterator_assign(*args)
787     def __eq__(*args): return _apt.pkgCacheVerIterator___eq__(*args)
788     def __ne__(*args): return _apt.pkgCacheVerIterator___ne__(*args)
789     def CompareVer(*args): return _apt.pkgCacheVerIterator_CompareVer(*args)
790     def __deref__(*args): return _apt.pkgCacheVerIterator___deref__(*args)
791     def __mul__(*args): return _apt.pkgCacheVerIterator___mul__(*args)
792     def Version(*args): return _apt.pkgCacheVerIterator_Version(*args)
793     def Cache(*args): return _apt.pkgCacheVerIterator_Cache(*args)
794     def VerStr(*args): return _apt.pkgCacheVerIterator_VerStr(*args)
795     def Section(*args): return _apt.pkgCacheVerIterator_Section(*args)
796     def Arch(*args): return _apt.pkgCacheVerIterator_Arch(*args)
797     def ParentPkg(*args): return _apt.pkgCacheVerIterator_ParentPkg(*args)
798     def DependsList(*args): return _apt.pkgCacheVerIterator_DependsList(*args)
799     def ProvidesList(*args): return _apt.pkgCacheVerIterator_ProvidesList(*args)
800     def FileList(*args): return _apt.pkgCacheVerIterator_FileList(*args)
801     def Index(*args): return _apt.pkgCacheVerIterator_Index(*args)
802     def Downloadable(*args): return _apt.pkgCacheVerIterator_Downloadable(*args)
803     def PriorityType(*args): return _apt.pkgCacheVerIterator_PriorityType(*args)
804     def RelStr(*args): return _apt.pkgCacheVerIterator_RelStr(*args)
805     def Automatic(*args): return _apt.pkgCacheVerIterator_Automatic(*args)
806     def NewestFile(*args): return _apt.pkgCacheVerIterator_NewestFile(*args)
807     def __init__(self, *args):
808         _swig_setattr(self, pkgCacheVerIterator, 'this', _apt.new_pkgCacheVerIterator(*args))
809         _swig_setattr(self, pkgCacheVerIterator, 'thisown', 1)
810     __swig_getmethods__["NextVer"] = _apt.pkgCacheVerIterator_NextVer_get
811     if _newclass:NextVer = property(_apt.pkgCacheVerIterator_NextVer_get)
812     __swig_getmethods__["Size"] = _apt.pkgCacheVerIterator_Size_get
813     if _newclass:Size = property(_apt.pkgCacheVerIterator_Size_get)
814     __swig_getmethods__["InstalledSize"] = _apt.pkgCacheVerIterator_InstalledSize_get
815     if _newclass:InstalledSize = property(_apt.pkgCacheVerIterator_InstalledSize_get)
816     __swig_getmethods__["Hash"] = _apt.pkgCacheVerIterator_Hash_get
817     if _newclass:Hash = property(_apt.pkgCacheVerIterator_Hash_get)
818     __swig_getmethods__["ID"] = _apt.pkgCacheVerIterator_ID_get
819     if _newclass:ID = property(_apt.pkgCacheVerIterator_ID_get)
820     __swig_getmethods__["Priority"] = _apt.pkgCacheVerIterator_Priority_get
821     if _newclass:Priority = property(_apt.pkgCacheVerIterator_Priority_get)
822     def __del__(self, destroy=_apt.delete_pkgCacheVerIterator):
823         try:
824             if self.thisown: destroy(self)
825         except: pass
826
827 class pkgCacheVerIteratorPtr(pkgCacheVerIterator):
828     def __init__(self, this):
829         _swig_setattr(self, pkgCacheVerIterator, 'this', this)
830         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheVerIterator, 'thisown', 0)
831         _swig_setattr(self, pkgCacheVerIterator,self.__class__,pkgCacheVerIterator)
832 _apt.pkgCacheVerIterator_swigregister(pkgCacheVerIteratorPtr)
833
834 class pkgCacheDepIterator(_object):
835     __swig_setmethods__ = {}
836     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheDepIterator, name, value)
837     __swig_getmethods__ = {}
838     __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheDepIterator, name)
839     def __repr__(self):
840         return "<C pkgCache::DepIterator instance at %s>" % (self.this,)
841     def __nonzero__(*args): return _apt.pkgCacheDepIterator___nonzero__(*args)
842     def next(*args): return _apt.pkgCacheDepIterator_next(*args)
843     def __iter__(*args): return _apt.pkgCacheDepIterator___iter__(*args)
844     def end(*args): return _apt.pkgCacheDepIterator_end(*args)
845     def __eq__(*args): return _apt.pkgCacheDepIterator___eq__(*args)
846     def __ne__(*args): return _apt.pkgCacheDepIterator___ne__(*args)
847     def __deref__(*args): return _apt.pkgCacheDepIterator___deref__(*args)
848     def __mul__(*args): return _apt.pkgCacheDepIterator___mul__(*args)
849     def Dependency(*args): return _apt.pkgCacheDepIterator_Dependency(*args)
850     def Cache(*args): return _apt.pkgCacheDepIterator_Cache(*args)
851     def TargetVer(*args): return _apt.pkgCacheDepIterator_TargetVer(*args)
852     def TargetPkg(*args): return _apt.pkgCacheDepIterator_TargetPkg(*args)
853     def ParentVer(*args): return _apt.pkgCacheDepIterator_ParentVer(*args)
854     def ParentPkg(*args): return _apt.pkgCacheDepIterator_ParentPkg(*args)
855     def Reverse(*args): return _apt.pkgCacheDepIterator_Reverse(*args)
856     def Index(*args): return _apt.pkgCacheDepIterator_Index(*args)
857     def IsCritical(*args): return _apt.pkgCacheDepIterator_IsCritical(*args)
858     def GlobOr(*args): return _apt.pkgCacheDepIterator_GlobOr(*args)
859     def AllTargets(*args): return _apt.pkgCacheDepIterator_AllTargets(*args)
860     def SmartTargetPkg(*args): return _apt.pkgCacheDepIterator_SmartTargetPkg(*args)
861     def CompType(*args): return _apt.pkgCacheDepIterator_CompType(*args)
862     def DepType(*args): return _apt.pkgCacheDepIterator_DepType(*args)
863     def __init__(self, *args):
864         _swig_setattr(self, pkgCacheDepIterator, 'this', _apt.new_pkgCacheDepIterator(*args))
865         _swig_setattr(self, pkgCacheDepIterator, 'thisown', 1)
866     __swig_getmethods__["Version"] = _apt.pkgCacheDepIterator_Version_get
867     if _newclass:Version = property(_apt.pkgCacheDepIterator_Version_get)
868     __swig_getmethods__["Package"] = _apt.pkgCacheDepIterator_Package_get
869     if _newclass:Package = property(_apt.pkgCacheDepIterator_Package_get)
870     __swig_getmethods__["NextDepends"] = _apt.pkgCacheDepIterator_NextDepends_get
871     if _newclass:NextDepends = property(_apt.pkgCacheDepIterator_NextDepends_get)
872     __swig_getmethods__["NextRevDepends"] = _apt.pkgCacheDepIterator_NextRevDepends_get
873     if _newclass:NextRevDepends = property(_apt.pkgCacheDepIterator_NextRevDepends_get)
874     __swig_getmethods__["ID"] = _apt.pkgCacheDepIterator_ID_get
875     if _newclass:ID = property(_apt.pkgCacheDepIterator_ID_get)
876     __swig_getmethods__["Type"] = _apt.pkgCacheDepIterator_Type_get
877     if _newclass:Type = property(_apt.pkgCacheDepIterator_Type_get)
878     __swig_getmethods__["CompareOp"] = _apt.pkgCacheDepIterator_CompareOp_get
879     if _newclass:CompareOp = property(_apt.pkgCacheDepIterator_CompareOp_get)
880     def __del__(self, destroy=_apt.delete_pkgCacheDepIterator):
881         try:
882             if self.thisown: destroy(self)
883         except: pass
884
885 class pkgCacheDepIteratorPtr(pkgCacheDepIterator):
886     def __init__(self, this):
887         _swig_setattr(self, pkgCacheDepIterator, 'this', this)
888         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheDepIterator, 'thisown', 0)
889         _swig_setattr(self, pkgCacheDepIterator,self.__class__,pkgCacheDepIterator)
890 _apt.pkgCacheDepIterator_swigregister(pkgCacheDepIteratorPtr)
891
892 class pkgCachePrvIterator(_object):
893     __swig_setmethods__ = {}
894     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCachePrvIterator, name, value)
895     __swig_getmethods__ = {}
896     __getattr__ = lambda self, name: _swig_getattr(self, pkgCachePrvIterator, name)
897     def __repr__(self):
898         return "<C pkgCache::PrvIterator instance at %s>" % (self.this,)
899     def __nonzero__(*args): return _apt.pkgCachePrvIterator___nonzero__(*args)
900     def next(*args): return _apt.pkgCachePrvIterator_next(*args)
901     def __iter__(*args): return _apt.pkgCachePrvIterator___iter__(*args)
902     def end(*args): return _apt.pkgCachePrvIterator_end(*args)
903     def __eq__(*args): return _apt.pkgCachePrvIterator___eq__(*args)
904     def __ne__(*args): return _apt.pkgCachePrvIterator___ne__(*args)
905     def __deref__(*args): return _apt.pkgCachePrvIterator___deref__(*args)
906     def __mul__(*args): return _apt.pkgCachePrvIterator___mul__(*args)
907     def Provides(*args): return _apt.pkgCachePrvIterator_Provides(*args)
908     def Cache(*args): return _apt.pkgCachePrvIterator_Cache(*args)
909     def Name(*args): return _apt.pkgCachePrvIterator_Name(*args)
910     def ProvideVersion(*args): return _apt.pkgCachePrvIterator_ProvideVersion(*args)
911     def ParentPkg(*args): return _apt.pkgCachePrvIterator_ParentPkg(*args)
912     def OwnerVer(*args): return _apt.pkgCachePrvIterator_OwnerVer(*args)
913     def OwnerPkg(*args): return _apt.pkgCachePrvIterator_OwnerPkg(*args)
914     def Index(*args): return _apt.pkgCachePrvIterator_Index(*args)
915     def __init__(self, *args):
916         _swig_setattr(self, pkgCachePrvIterator, 'this', _apt.new_pkgCachePrvIterator(*args))
917         _swig_setattr(self, pkgCachePrvIterator, 'thisown', 1)
918     __swig_getmethods__["Version"] = _apt.pkgCachePrvIterator_Version_get
919     if _newclass:Version = property(_apt.pkgCachePrvIterator_Version_get)
920     __swig_getmethods__["NextProvides"] = _apt.pkgCachePrvIterator_NextProvides_get
921     if _newclass:NextProvides = property(_apt.pkgCachePrvIterator_NextProvides_get)
922     __swig_getmethods__["NextPkgProv"] = _apt.pkgCachePrvIterator_NextPkgProv_get
923     if _newclass:NextPkgProv = property(_apt.pkgCachePrvIterator_NextPkgProv_get)
924     def __del__(self, destroy=_apt.delete_pkgCachePrvIterator):
925         try:
926             if self.thisown: destroy(self)
927         except: pass
928
929 class pkgCachePrvIteratorPtr(pkgCachePrvIterator):
930     def __init__(self, this):
931         _swig_setattr(self, pkgCachePrvIterator, 'this', this)
932         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCachePrvIterator, 'thisown', 0)
933         _swig_setattr(self, pkgCachePrvIterator,self.__class__,pkgCachePrvIterator)
934 _apt.pkgCachePrvIterator_swigregister(pkgCachePrvIteratorPtr)
935
936 class pkgCachePkgFileIterator(_object):
937     __swig_setmethods__ = {}
938     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCachePkgFileIterator, name, value)
939     __swig_getmethods__ = {}
940     __getattr__ = lambda self, name: _swig_getattr(self, pkgCachePkgFileIterator, name)
941     def __repr__(self):
942         return "<C pkgCache::PkgFileIterator instance at %s>" % (self.this,)
943     def __nonzero__(*args): return _apt.pkgCachePkgFileIterator___nonzero__(*args)
944     def next(*args): return _apt.pkgCachePkgFileIterator_next(*args)
945     def __iter__(*args): return _apt.pkgCachePkgFileIterator___iter__(*args)
946     def end(*args): return _apt.pkgCachePkgFileIterator_end(*args)
947     def __eq__(*args): return _apt.pkgCachePkgFileIterator___eq__(*args)
948     def __ne__(*args): return _apt.pkgCachePkgFileIterator___ne__(*args)
949     def __deref__(*args): return _apt.pkgCachePkgFileIterator___deref__(*args)
950     def __mul__(*args): return _apt.pkgCachePkgFileIterator___mul__(*args)
951     def PackageFile(*args): return _apt.pkgCachePkgFileIterator_PackageFile(*args)
952     def Cache(*args): return _apt.pkgCachePkgFileIterator_Cache(*args)
953     def FileName(*args): return _apt.pkgCachePkgFileIterator_FileName(*args)
954     def Archive(*args): return _apt.pkgCachePkgFileIterator_Archive(*args)
955     def Component(*args): return _apt.pkgCachePkgFileIterator_Component(*args)
956     def Version(*args): return _apt.pkgCachePkgFileIterator_Version(*args)
957     def Origin(*args): return _apt.pkgCachePkgFileIterator_Origin(*args)
958     def Label(*args): return _apt.pkgCachePkgFileIterator_Label(*args)
959     def Site(*args): return _apt.pkgCachePkgFileIterator_Site(*args)
960     def Architecture(*args): return _apt.pkgCachePkgFileIterator_Architecture(*args)
961     def IndexType(*args): return _apt.pkgCachePkgFileIterator_IndexType(*args)
962     def Index(*args): return _apt.pkgCachePkgFileIterator_Index(*args)
963     def IsOk(*args): return _apt.pkgCachePkgFileIterator_IsOk(*args)
964     def RelStr(*args): return _apt.pkgCachePkgFileIterator_RelStr(*args)
965     def __init__(self, *args):
966         _swig_setattr(self, pkgCachePkgFileIterator, 'this', _apt.new_pkgCachePkgFileIterator(*args))
967         _swig_setattr(self, pkgCachePkgFileIterator, 'thisown', 1)
968     __swig_getmethods__["Size"] = _apt.pkgCachePkgFileIterator_Size_get
969     if _newclass:Size = property(_apt.pkgCachePkgFileIterator_Size_get)
970     __swig_getmethods__["Flags"] = _apt.pkgCachePkgFileIterator_Flags_get
971     if _newclass:Flags = property(_apt.pkgCachePkgFileIterator_Flags_get)
972     __swig_getmethods__["NextFile"] = _apt.pkgCachePkgFileIterator_NextFile_get
973     if _newclass:NextFile = property(_apt.pkgCachePkgFileIterator_NextFile_get)
974     __swig_getmethods__["ID"] = _apt.pkgCachePkgFileIterator_ID_get
975     if _newclass:ID = property(_apt.pkgCachePkgFileIterator_ID_get)
976     __swig_getmethods__["mtime"] = _apt.pkgCachePkgFileIterator_mtime_get
977     if _newclass:mtime = property(_apt.pkgCachePkgFileIterator_mtime_get)
978     def __del__(self, destroy=_apt.delete_pkgCachePkgFileIterator):
979         try:
980             if self.thisown: destroy(self)
981         except: pass
982
983 class pkgCachePkgFileIteratorPtr(pkgCachePkgFileIterator):
984     def __init__(self, this):
985         _swig_setattr(self, pkgCachePkgFileIterator, 'this', this)
986         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCachePkgFileIterator, 'thisown', 0)
987         _swig_setattr(self, pkgCachePkgFileIterator,self.__class__,pkgCachePkgFileIterator)
988 _apt.pkgCachePkgFileIterator_swigregister(pkgCachePkgFileIteratorPtr)
989
990 class pkgCacheVerFileIterator(_object):
991     __swig_setmethods__ = {}
992     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheVerFileIterator, name, value)
993     __swig_getmethods__ = {}
994     __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheVerFileIterator, name)
995     def __repr__(self):
996         return "<C pkgCache::VerFileIterator instance at %s>" % (self.this,)
997     def __nonzero__(*args): return _apt.pkgCacheVerFileIterator___nonzero__(*args)
998     def next(*args): return _apt.pkgCacheVerFileIterator_next(*args)
999     def __iter__(*args): return _apt.pkgCacheVerFileIterator___iter__(*args)
1000     def end(*args): return _apt.pkgCacheVerFileIterator_end(*args)
1001     def __eq__(*args): return _apt.pkgCacheVerFileIterator___eq__(*args)
1002     def __ne__(*args): return _apt.pkgCacheVerFileIterator___ne__(*args)
1003     def __deref__(*args): return _apt.pkgCacheVerFileIterator___deref__(*args)
1004     def __mul__(*args): return _apt.pkgCacheVerFileIterator___mul__(*args)
1005     def VerFile(*args): return _apt.pkgCacheVerFileIterator_VerFile(*args)
1006     def Cache(*args): return _apt.pkgCacheVerFileIterator_Cache(*args)
1007     def File(*args): return _apt.pkgCacheVerFileIterator_File(*args)
1008     def Index(*args): return _apt.pkgCacheVerFileIterator_Index(*args)
1009     def __init__(self, *args):
1010         _swig_setattr(self, pkgCacheVerFileIterator, 'this', _apt.new_pkgCacheVerFileIterator(*args))
1011         _swig_setattr(self, pkgCacheVerFileIterator, 'thisown', 1)
1012     __swig_getmethods__["NextFile"] = _apt.pkgCacheVerFileIterator_NextFile_get
1013     if _newclass:NextFile = property(_apt.pkgCacheVerFileIterator_NextFile_get)
1014     __swig_getmethods__["Offset"] = _apt.pkgCacheVerFileIterator_Offset_get
1015     if _newclass:Offset = property(_apt.pkgCacheVerFileIterator_Offset_get)
1016     __swig_getmethods__["Size"] = _apt.pkgCacheVerFileIterator_Size_get
1017     if _newclass:Size = property(_apt.pkgCacheVerFileIterator_Size_get)
1018     def __del__(self, destroy=_apt.delete_pkgCacheVerFileIterator):
1019         try:
1020             if self.thisown: destroy(self)
1021         except: pass
1022
1023 class pkgCacheVerFileIteratorPtr(pkgCacheVerFileIterator):
1024     def __init__(self, this):
1025         _swig_setattr(self, pkgCacheVerFileIterator, 'this', this)
1026         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheVerFileIterator, 'thisown', 0)
1027         _swig_setattr(self, pkgCacheVerFileIterator,self.__class__,pkgCacheVerFileIterator)
1028 _apt.pkgCacheVerFileIterator_swigregister(pkgCacheVerFileIteratorPtr)
1029
1030 class pkgCacheFile(_object):
1031     __swig_setmethods__ = {}
1032     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheFile, name, value)
1033     __swig_getmethods__ = {}
1034     __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheFile, name)
1035     def __repr__(self):
1036         return "<C pkgCacheFile instance at %s>" % (self.this,)
1037     __swig_setmethods__["Policy"] = _apt.pkgCacheFile_Policy_set
1038     __swig_getmethods__["Policy"] = _apt.pkgCacheFile_Policy_get
1039     if _newclass:Policy = property(_apt.pkgCacheFile_Policy_get, _apt.pkgCacheFile_Policy_set)
1040     def pkgCache(*args): return _apt.pkgCacheFile_pkgCache(*args)
1041     def pkgDepCache(*args): return _apt.pkgCacheFile_pkgDepCache(*args)
1042     def __deref__(*args): return _apt.pkgCacheFile___deref__(*args)
1043     def __mul__(*args): return _apt.pkgCacheFile___mul__(*args)
1044     def __getitem__(*args): return _apt.pkgCacheFile___getitem__(*args)
1045     def BuildCaches(*args): return _apt.pkgCacheFile_BuildCaches(*args)
1046     def Open(*args): return _apt.pkgCacheFile_Open(*args)
1047     def Close(*args): return _apt.pkgCacheFile_Close(*args)
1048     def __init__(self, *args):
1049         _swig_setattr(self, pkgCacheFile, 'this', _apt.new_pkgCacheFile(*args))
1050         _swig_setattr(self, pkgCacheFile, 'thisown', 1)
1051     def __del__(self, destroy=_apt.delete_pkgCacheFile):
1052         try:
1053             if self.thisown: destroy(self)
1054         except: pass
1055     def BuildGroupOrs(*args): return _apt.pkgCacheFile_BuildGroupOrs(*args)
1056     def UpdateVerState(*args): return _apt.pkgCacheFile_UpdateVerState(*args)
1057     def Head(*args): return _apt.pkgCacheFile_Head(*args)
1058     def PkgIter(*args): return _apt.pkgCacheFile_PkgIter(*args)
1059     def FindPkg(*args): return _apt.pkgCacheFile_FindPkg(*args)
1060     def GetCache(*args): return _apt.pkgCacheFile_GetCache(*args)
1061     def VS(*args): return _apt.pkgCacheFile_VS(*args)
1062     def GetCandidateVer(*args): return _apt.pkgCacheFile_GetCandidateVer(*args)
1063     def IsImportantDep(*args): return _apt.pkgCacheFile_IsImportantDep(*args)
1064     def GetPolicy(*args): return _apt.pkgCacheFile_GetPolicy(*args)
1065     def GetPkgPriority(*args): return _apt.pkgCacheFile_GetPkgPriority(*args)
1066     def MarkKeep(*args): return _apt.pkgCacheFile_MarkKeep(*args)
1067     def MarkDelete(*args): return _apt.pkgCacheFile_MarkDelete(*args)
1068     def MarkInstall(*args): return _apt.pkgCacheFile_MarkInstall(*args)
1069     def SetReInstall(*args): return _apt.pkgCacheFile_SetReInstall(*args)
1070     def SetCandidateVersion(*args): return _apt.pkgCacheFile_SetCandidateVersion(*args)
1071     def Update(*args): return _apt.pkgCacheFile_Update(*args)
1072     def UsrSize(*args): return _apt.pkgCacheFile_UsrSize(*args)
1073     def DebSize(*args): return _apt.pkgCacheFile_DebSize(*args)
1074     def DelCount(*args): return _apt.pkgCacheFile_DelCount(*args)
1075     def KeepCount(*args): return _apt.pkgCacheFile_KeepCount(*args)
1076     def InstCount(*args): return _apt.pkgCacheFile_InstCount(*args)
1077     def BrokenCount(*args): return _apt.pkgCacheFile_BrokenCount(*args)
1078     def BadCount(*args): return _apt.pkgCacheFile_BadCount(*args)
1079     def Init(*args): return _apt.pkgCacheFile_Init(*args)
1080
1081 class pkgCacheFilePtr(pkgCacheFile):
1082     def __init__(self, this):
1083         _swig_setattr(self, pkgCacheFile, 'this', this)
1084         if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheFile, 'thisown', 0)
1085         _swig_setattr(self, pkgCacheFile,self.__class__,pkgCacheFile)
1086 _apt.pkgCacheFile_swigregister(pkgCacheFilePtr)
1087
1088 class pkgProblemResolver(_object):
1089     __swig_setmethods__ = {}
1090     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgProblemResolver, name, value)
1091     __swig_getmethods__ = {}
1092     __getattr__ = lambda self, name: _swig_getattr(self, pkgProblemResolver, name)
1093     def __repr__(self):
1094         return "<C pkgProblemResolver instance at %s>" % (self.this,)
1095     def Protect(*args): return _apt.pkgProblemResolver_Protect(*args)
1096     def Remove(*args): return _apt.pkgProblemResolver_Remove(*args)
1097     def Clear(*args): return _apt.pkgProblemResolver_Clear(*args)
1098     def Resolve(*args): return _apt.pkgProblemResolver_Resolve(*args)
1099     def ResolveByKeep(*args): return _apt.pkgProblemResolver_ResolveByKeep(*args)
1100     def InstallProtect(*args): return _apt.pkgProblemResolver_InstallProtect(*args)
1101     def RemoveDepends(*args): return _apt.pkgProblemResolver_RemoveDepends(*args)
1102     def __init__(self, *args):
1103         _swig_setattr(self, pkgProblemResolver, 'this', _apt.new_pkgProblemResolver(*args))
1104         _swig_setattr(self, pkgProblemResolver, 'thisown', 1)
1105     def __del__(self, destroy=_apt.delete_pkgProblemResolver):
1106         try:
1107             if self.thisown: destroy(self)
1108         except: pass
1109
1110 class pkgProblemResolverPtr(pkgProblemResolver):
1111     def __init__(self, this):
1112         _swig_setattr(self, pkgProblemResolver, 'this', this)
1113         if not hasattr(self,"thisown"): _swig_setattr(self, pkgProblemResolver, 'thisown', 0)
1114         _swig_setattr(self, pkgProblemResolver,self.__class__,pkgProblemResolver)
1115 _apt.pkgProblemResolver_swigregister(pkgProblemResolverPtr)
1116
1117
1118 pkgDistUpgrade = _apt.pkgDistUpgrade
1119
1120 pkgApplyStatus = _apt.pkgApplyStatus
1121
1122 pkgFixBroken = _apt.pkgFixBroken
1123
1124 pkgAllUpgrade = _apt.pkgAllUpgrade
1125
1126 pkgMinimizeUpgrade = _apt.pkgMinimizeUpgrade
1127
1128 pkgPrioSortList = _apt.pkgPrioSortList
1129 class pkgSystem(_object):
1130     __swig_setmethods__ = {}
1131     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgSystem, name, value)
1132     __swig_getmethods__ = {}
1133     __getattr__ = lambda self, name: _swig_getattr(self, pkgSystem, name)
1134     def __init__(self): raise RuntimeError, "No constructor defined"
1135     def __repr__(self):
1136         return "<C pkgSystem instance at %s>" % (self.this,)
1137     __swig_getmethods__["GetSystem"] = lambda x: _apt.pkgSystem_GetSystem
1138     if _newclass:GetSystem = staticmethod(_apt.pkgSystem_GetSystem)
1139     __swig_getmethods__["Label"] = _apt.pkgSystem_Label_get
1140     if _newclass:Label = property(_apt.pkgSystem_Label_get)
1141     __swig_setmethods__["VS"] = _apt.pkgSystem_VS_set
1142     __swig_getmethods__["VS"] = _apt.pkgSystem_VS_get
1143     if _newclass:VS = property(_apt.pkgSystem_VS_get, _apt.pkgSystem_VS_set)
1144     def Lock(*args): return _apt.pkgSystem_Lock(*args)
1145     def UnLock(*args): return _apt.pkgSystem_UnLock(*args)
1146     def LockRead(*args): return _apt.pkgSystem_LockRead(*args)
1147     def CacheBuilt(*args): return _apt.pkgSystem_CacheBuilt(*args)
1148     def CreatePM(*args): return _apt.pkgSystem_CreatePM(*args)
1149     def Initialize(*args): return _apt.pkgSystem_Initialize(*args)
1150     def ArchiveSupported(*args): return _apt.pkgSystem_ArchiveSupported(*args)
1151     def AddStatusFiles(*args): return _apt.pkgSystem_AddStatusFiles(*args)
1152     def AddSourceFiles(*args): return _apt.pkgSystem_AddSourceFiles(*args)
1153     def FindIndex(*args): return _apt.pkgSystem_FindIndex(*args)
1154     def Score(*args): return _apt.pkgSystem_Score(*args)
1155     def PreProcess(*args): return _apt.pkgSystem_PreProcess(*args)
1156     def ProcessCache(*args): return _apt.pkgSystem_ProcessCache(*args)
1157     def IgnoreDep(*args): return _apt.pkgSystem_IgnoreDep(*args)
1158     def OptionsHash(*args): return _apt.pkgSystem_OptionsHash(*args)
1159     def __del__(self, destroy=_apt.delete_pkgSystem):
1160         try:
1161             if self.thisown: destroy(self)
1162         except: pass
1163
1164 class pkgSystemPtr(pkgSystem):
1165     def __init__(self, this):
1166         _swig_setattr(self, pkgSystem, 'this', this)
1167         if not hasattr(self,"thisown"): _swig_setattr(self, pkgSystem, 'thisown', 0)
1168         _swig_setattr(self, pkgSystem,self.__class__,pkgSystem)
1169 _apt.pkgSystem_swigregister(pkgSystemPtr)
1170
1171 pkgSystem_GetSystem = _apt.pkgSystem_GetSystem
1172
1173 class Configuration(_object):
1174     __swig_setmethods__ = {}
1175     __setattr__ = lambda self, name, value: _swig_setattr(self, Configuration, name, value)
1176     __swig_getmethods__ = {}
1177     __getattr__ = lambda self, name: _swig_getattr(self, Configuration, name)
1178     def __repr__(self):
1179         return "<C Configuration instance at %s>" % (self.this,)
1180     def Find(*args): return _apt.Configuration_Find(*args)
1181     def FindFile(*args): return _apt.Configuration_FindFile(*args)
1182     def FindDir(*args): return _apt.Configuration_FindDir(*args)
1183     def FindI(*args): return _apt.Configuration_FindI(*args)
1184     def FindB(*args): return _apt.Configuration_FindB(*args)
1185     def FindAny(*args): return _apt.Configuration_FindAny(*args)
1186     def CndSet(*args): return _apt.Configuration_CndSet(*args)
1187     def Set(*args): return _apt.Configuration_Set(*args)
1188     def Exists(*args): return _apt.Configuration_Exists(*args)
1189     def ExistsAny(*args): return _apt.Configuration_ExistsAny(*args)
1190     def Clear(*args): return _apt.Configuration_Clear(*args)
1191     def Tree(*args): return _apt.Configuration_Tree(*args)
1192     def Dump(*args): return _apt.Configuration_Dump(*args)
1193     def __init__(self, *args):
1194         _swig_setattr(self, Configuration, 'this', _apt.new_Configuration(*args))
1195         _swig_setattr(self, Configuration, 'thisown', 1)
1196     def __del__(self, destroy=_apt.delete_Configuration):
1197         try:
1198             if self.thisown: destroy(self)
1199         except: pass
1200
1201 class ConfigurationPtr(Configuration):
1202     def __init__(self, this):
1203         _swig_setattr(self, Configuration, 'this', this)
1204         if not hasattr(self,"thisown"): _swig_setattr(self, Configuration, 'thisown', 0)
1205         _swig_setattr(self, Configuration,self.__class__,Configuration)
1206 _apt.Configuration_swigregister(ConfigurationPtr)
1207
1208
1209 ReadConfigFile = _apt.ReadConfigFile
1210
1211 ReadConfigDir = _apt.ReadConfigDir
1212 class ConfigurationItem(_object):
1213     __swig_setmethods__ = {}
1214     __setattr__ = lambda self, name, value: _swig_setattr(self, ConfigurationItem, name, value)
1215     __swig_getmethods__ = {}
1216     __getattr__ = lambda self, name: _swig_getattr(self, ConfigurationItem, name)
1217     def __repr__(self):
1218         return "<C Configuration::Item instance at %s>" % (self.this,)
1219     __swig_setmethods__["Tag"] = _apt.ConfigurationItem_Tag_set
1220     __swig_getmethods__["Tag"] = _apt.ConfigurationItem_Tag_get
1221     if _newclass:Tag = property(_apt.ConfigurationItem_Tag_get, _apt.ConfigurationItem_Tag_set)
1222     __swig_setmethods__["Value"] = _apt.ConfigurationItem_Value_set
1223     __swig_getmethods__["Value"] = _apt.ConfigurationItem_Value_get
1224     if _newclass:Value = property(_apt.ConfigurationItem_Value_get, _apt.ConfigurationItem_Value_set)
1225     __swig_setmethods__["Parent"] = _apt.ConfigurationItem_Parent_set
1226     __swig_getmethods__["Parent"] = _apt.ConfigurationItem_Parent_get
1227     if _newclass:Parent = property(_apt.ConfigurationItem_Parent_get, _apt.ConfigurationItem_Parent_set)
1228     __swig_setmethods__["Child"] = _apt.ConfigurationItem_Child_set
1229     __swig_getmethods__["Child"] = _apt.ConfigurationItem_Child_get
1230     if _newclass:Child = property(_apt.ConfigurationItem_Child_get, _apt.ConfigurationItem_Child_set)
1231     __swig_setmethods__["Next"] = _apt.ConfigurationItem_Next_set
1232     __swig_getmethods__["Next"] = _apt.ConfigurationItem_Next_get
1233     if _newclass:Next = property(_apt.ConfigurationItem_Next_get, _apt.ConfigurationItem_Next_set)
1234     def FullTag(*args): return _apt.ConfigurationItem_FullTag(*args)
1235     def __init__(self, *args):
1236         _swig_setattr(self, ConfigurationItem, 'this', _apt.new_ConfigurationItem(*args))
1237         _swig_setattr(self, ConfigurationItem, 'thisown', 1)
1238     def __del__(self, destroy=_apt.delete_ConfigurationItem):
1239         try:
1240             if self.thisown: destroy(self)
1241         except: pass
1242
1243 class ConfigurationItemPtr(ConfigurationItem):
1244     def __init__(self, this):
1245         _swig_setattr(self, ConfigurationItem, 'this', this)
1246         if not hasattr(self,"thisown"): _swig_setattr(self, ConfigurationItem, 'thisown', 0)
1247         _swig_setattr(self, ConfigurationItem,self.__class__,ConfigurationItem)
1248 _apt.ConfigurationItem_swigregister(ConfigurationItemPtr)
1249
1250 class OpProgress(_object):
1251     __swig_setmethods__ = {}
1252     __setattr__ = lambda self, name, value: _swig_setattr(self, OpProgress, name, value)
1253     __swig_getmethods__ = {}
1254     __getattr__ = lambda self, name: _swig_getattr(self, OpProgress, name)
1255     def __repr__(self):
1256         return "<C OpProgress instance at %s>" % (self.this,)
1257     def Progress(*args): return _apt.OpProgress_Progress(*args)
1258     def SubProgress(*args): return _apt.OpProgress_SubProgress(*args)
1259     def OverallProgress(*args): return _apt.OpProgress_OverallProgress(*args)
1260     def Done(*args): return _apt.OpProgress_Done(*args)
1261     def __init__(self, *args):
1262         _swig_setattr(self, OpProgress, 'this', _apt.new_OpProgress(*args))
1263         _swig_setattr(self, OpProgress, 'thisown', 1)
1264     def __del__(self, destroy=_apt.delete_OpProgress):
1265         try:
1266             if self.thisown: destroy(self)
1267         except: pass
1268
1269 class OpProgressPtr(OpProgress):
1270     def __init__(self, this):
1271         _swig_setattr(self, OpProgress, 'this', this)
1272         if not hasattr(self,"thisown"): _swig_setattr(self, OpProgress, 'thisown', 0)
1273         _swig_setattr(self, OpProgress,self.__class__,OpProgress)
1274 _apt.OpProgress_swigregister(OpProgressPtr)
1275
1276 class OpTextProgress(OpProgress):
1277     __swig_setmethods__ = {}
1278     for _s in [OpProgress]: __swig_setmethods__.update(_s.__swig_setmethods__)
1279     __setattr__ = lambda self, name, value: _swig_setattr(self, OpTextProgress, name, value)
1280     __swig_getmethods__ = {}
1281     for _s in [OpProgress]: __swig_getmethods__.update(_s.__swig_getmethods__)
1282     __getattr__ = lambda self, name: _swig_getattr(self, OpTextProgress, name)
1283     def __repr__(self):
1284         return "<C OpTextProgress instance at %s>" % (self.this,)
1285     def Done(*args): return _apt.OpTextProgress_Done(*args)
1286     def __init__(self, *args):
1287         _swig_setattr(self, OpTextProgress, 'this', _apt.new_OpTextProgress(*args))
1288         _swig_setattr(self, OpTextProgress, 'thisown', 1)
1289     def __del__(self, destroy=_apt.delete_OpTextProgress):
1290         try:
1291             if self.thisown: destroy(self)
1292         except: pass
1293
1294 class OpTextProgressPtr(OpTextProgress):
1295     def __init__(self, this):
1296         _swig_setattr(self, OpTextProgress, 'this', this)
1297         if not hasattr(self,"thisown"): _swig_setattr(self, OpTextProgress, 'thisown', 0)
1298         _swig_setattr(self, OpTextProgress,self.__class__,OpTextProgress)
1299 _apt.OpTextProgress_swigregister(OpTextProgressPtr)
1300
1301 class pkgVersioningSystem(_object):
1302     __swig_setmethods__ = {}
1303     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgVersioningSystem, name, value)
1304     __swig_getmethods__ = {}
1305     __getattr__ = lambda self, name: _swig_getattr(self, pkgVersioningSystem, name)
1306     def __init__(self): raise RuntimeError, "No constructor defined"
1307     def __repr__(self):
1308         return "<C pkgVersioningSystem instance at %s>" % (self.this,)
1309     __swig_getmethods__["GetVS"] = lambda x: _apt.pkgVersioningSystem_GetVS
1310     if _newclass:GetVS = staticmethod(_apt.pkgVersioningSystem_GetVS)
1311     __swig_getmethods__["Label"] = _apt.pkgVersioningSystem_Label_get
1312     if _newclass:Label = property(_apt.pkgVersioningSystem_Label_get)
1313     def DoCmpVersion(*args): return _apt.pkgVersioningSystem_DoCmpVersion(*args)
1314     def DoCmpVersionArch(*args): return _apt.pkgVersioningSystem_DoCmpVersionArch(*args)
1315     def CmpVersionArch(*args): return _apt.pkgVersioningSystem_CmpVersionArch(*args)
1316     def CheckDep(*args): return _apt.pkgVersioningSystem_CheckDep(*args)
1317     def DoCmpReleaseVer(*args): return _apt.pkgVersioningSystem_DoCmpReleaseVer(*args)
1318     def UpstreamVersion(*args): return _apt.pkgVersioningSystem_UpstreamVersion(*args)
1319     def TestCompatibility(*args): return _apt.pkgVersioningSystem_TestCompatibility(*args)
1320     def CmpVersion(*args): return _apt.pkgVersioningSystem_CmpVersion(*args)
1321     def CmpReleaseVer(*args): return _apt.pkgVersioningSystem_CmpReleaseVer(*args)
1322     def __del__(self, destroy=_apt.delete_pkgVersioningSystem):
1323         try:
1324             if self.thisown: destroy(self)
1325         except: pass
1326
1327 class pkgVersioningSystemPtr(pkgVersioningSystem):
1328     def __init__(self, this):
1329         _swig_setattr(self, pkgVersioningSystem, 'this', this)
1330         if not hasattr(self,"thisown"): _swig_setattr(self, pkgVersioningSystem, 'thisown', 0)
1331         _swig_setattr(self, pkgVersioningSystem,self.__class__,pkgVersioningSystem)
1332 _apt.pkgVersioningSystem_swigregister(pkgVersioningSystemPtr)
1333
1334 pkgVersioningSystem_GetVS = _apt.pkgVersioningSystem_GetVS
1335
1336 class pkgRecords(_object):
1337     __swig_setmethods__ = {}
1338     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgRecords, name, value)
1339     __swig_getmethods__ = {}
1340     __getattr__ = lambda self, name: _swig_getattr(self, pkgRecords, name)
1341     def __repr__(self):
1342         return "<C pkgRecords instance at %s>" % (self.this,)
1343     def Lookup(*args): return _apt.pkgRecords_Lookup(*args)
1344     def __init__(self, *args):
1345         _swig_setattr(self, pkgRecords, 'this', _apt.new_pkgRecords(*args))
1346         _swig_setattr(self, pkgRecords, 'thisown', 1)
1347     def __del__(self, destroy=_apt.delete_pkgRecords):
1348         try:
1349             if self.thisown: destroy(self)
1350         except: pass
1351
1352 class pkgRecordsPtr(pkgRecords):
1353     def __init__(self, this):
1354         _swig_setattr(self, pkgRecords, 'this', this)
1355         if not hasattr(self,"thisown"): _swig_setattr(self, pkgRecords, 'thisown', 0)
1356         _swig_setattr(self, pkgRecords,self.__class__,pkgRecords)
1357 _apt.pkgRecords_swigregister(pkgRecordsPtr)
1358
1359 class pkgRecordsParser(_object):
1360     __swig_setmethods__ = {}
1361     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgRecordsParser, name, value)
1362     __swig_getmethods__ = {}
1363     __getattr__ = lambda self, name: _swig_getattr(self, pkgRecordsParser, name)
1364     def __init__(self): raise RuntimeError, "No constructor defined"
1365     def __repr__(self):
1366         return "<C pkgRecords::Parser instance at %s>" % (self.this,)
1367     def FileName(*args): return _apt.pkgRecordsParser_FileName(*args)
1368     def MD5Hash(*args): return _apt.pkgRecordsParser_MD5Hash(*args)
1369     def SHA1Hash(*args): return _apt.pkgRecordsParser_SHA1Hash(*args)
1370     def SourcePkg(*args): return _apt.pkgRecordsParser_SourcePkg(*args)
1371     def Maintainer(*args): return _apt.pkgRecordsParser_Maintainer(*args)
1372     def ShortDesc(*args): return _apt.pkgRecordsParser_ShortDesc(*args)
1373     def LongDesc(*args): return _apt.pkgRecordsParser_LongDesc(*args)
1374     def Name(*args): return _apt.pkgRecordsParser_Name(*args)
1375     def GetRec(*args): return _apt.pkgRecordsParser_GetRec(*args)
1376     def HasFile(*args): return _apt.pkgRecordsParser_HasFile(*args)
1377     def __del__(self, destroy=_apt.delete_pkgRecordsParser):
1378         try:
1379             if self.thisown: destroy(self)
1380         except: pass
1381
1382 class pkgRecordsParserPtr(pkgRecordsParser):
1383     def __init__(self, this):
1384         _swig_setattr(self, pkgRecordsParser, 'this', this)
1385         if not hasattr(self,"thisown"): _swig_setattr(self, pkgRecordsParser, 'thisown', 0)
1386         _swig_setattr(self, pkgRecordsParser,self.__class__,pkgRecordsParser)
1387 _apt.pkgRecordsParser_swigregister(pkgRecordsParserPtr)
1388
1389 class pkgAcquireItem(_object):
1390     __swig_setmethods__ = {}
1391     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcquireItem, name, value)
1392     __swig_getmethods__ = {}
1393     __getattr__ = lambda self, name: _swig_getattr(self, pkgAcquireItem, name)
1394     def __init__(self): raise RuntimeError, "No constructor defined"
1395     def __repr__(self):
1396         return "<C pkgAcquire::Item instance at %s>" % (self.this,)
1397     __swig_getmethods__["DestFile"] = _apt.pkgAcquireItem_DestFile_get
1398     if _newclass:DestFile = property(_apt.pkgAcquireItem_DestFile_get)
1399     __swig_getmethods__["ErrorText"] = _apt.pkgAcquireItem_ErrorText_get
1400     if _newclass:ErrorText = property(_apt.pkgAcquireItem_ErrorText_get)
1401     StatIdle = _apt.pkgAcquireItem_StatIdle
1402     StatFetching = _apt.pkgAcquireItem_StatFetching
1403     StatDone = _apt.pkgAcquireItem_StatDone
1404     StatError = _apt.pkgAcquireItem_StatError
1405     __swig_setmethods__["Status"] = _apt.pkgAcquireItem_Status_set
1406     __swig_getmethods__["Status"] = _apt.pkgAcquireItem_Status_get
1407     if _newclass:Status = property(_apt.pkgAcquireItem_Status_get, _apt.pkgAcquireItem_Status_set)
1408     __swig_setmethods__["FileSize"] = _apt.pkgAcquireItem_FileSize_set
1409     __swig_getmethods__["FileSize"] = _apt.pkgAcquireItem_FileSize_get
1410     if _newclass:FileSize = property(_apt.pkgAcquireItem_FileSize_get, _apt.pkgAcquireItem_FileSize_set)
1411     __swig_setmethods__["PartialSize"] = _apt.pkgAcquireItem_PartialSize_set
1412     __swig_getmethods__["PartialSize"] = _apt.pkgAcquireItem_PartialSize_get
1413     if _newclass:PartialSize = property(_apt.pkgAcquireItem_PartialSize_get, _apt.pkgAcquireItem_PartialSize_set)
1414     __swig_setmethods__["Mode"] = _apt.pkgAcquireItem_Mode_set
1415     __swig_getmethods__["Mode"] = _apt.pkgAcquireItem_Mode_get
1416     if _newclass:Mode = property(_apt.pkgAcquireItem_Mode_get, _apt.pkgAcquireItem_Mode_set)
1417     __swig_setmethods__["ID"] = _apt.pkgAcquireItem_ID_set
1418     __swig_getmethods__["ID"] = _apt.pkgAcquireItem_ID_get
1419     if _newclass:ID = property(_apt.pkgAcquireItem_ID_get, _apt.pkgAcquireItem_ID_set)
1420     __swig_setmethods__["Complete"] = _apt.pkgAcquireItem_Complete_set
1421     __swig_getmethods__["Complete"] = _apt.pkgAcquireItem_Complete_get
1422     if _newclass:Complete = property(_apt.pkgAcquireItem_Complete_get, _apt.pkgAcquireItem_Complete_set)
1423     __swig_setmethods__["Local"] = _apt.pkgAcquireItem_Local_set
1424     __swig_getmethods__["Local"] = _apt.pkgAcquireItem_Local_get
1425     if _newclass:Local = property(_apt.pkgAcquireItem_Local_get, _apt.pkgAcquireItem_Local_set)
1426     __swig_setmethods__["QueueCounter"] = _apt.pkgAcquireItem_QueueCounter_set
1427     __swig_getmethods__["QueueCounter"] = _apt.pkgAcquireItem_QueueCounter_get
1428     if _newclass:QueueCounter = property(_apt.pkgAcquireItem_QueueCounter_get, _apt.pkgAcquireItem_QueueCounter_set)
1429     def Failed(*args): return _apt.pkgAcquireItem_Failed(*args)
1430     def Done(*args): return _apt.pkgAcquireItem_Done(*args)
1431     def Start(*args): return _apt.pkgAcquireItem_Start(*args)
1432     def Custom600Headers(*args): return _apt.pkgAcquireItem_Custom600Headers(*args)
1433     def DescURI(*args): return _apt.pkgAcquireItem_DescURI(*args)
1434     def Finished(*args): return _apt.pkgAcquireItem_Finished(*args)
1435     def MD5Sum(*args): return _apt.pkgAcquireItem_MD5Sum(*args)
1436     def GetOwner(*args): return _apt.pkgAcquireItem_GetOwner(*args)
1437     def __del__(self, destroy=_apt.delete_pkgAcquireItem):
1438         try:
1439             if self.thisown: destroy(self)
1440         except: pass
1441
1442 class pkgAcquireItemPtr(pkgAcquireItem):
1443     def __init__(self, this):
1444         _swig_setattr(self, pkgAcquireItem, 'this', this)
1445         if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcquireItem, 'thisown', 0)
1446         _swig_setattr(self, pkgAcquireItem,self.__class__,pkgAcquireItem)
1447 _apt.pkgAcquireItem_swigregister(pkgAcquireItemPtr)
1448
1449 class pkgAcqIndex(pkgAcquireItem):
1450     __swig_setmethods__ = {}
1451     for _s in [pkgAcquireItem]: __swig_setmethods__.update(_s.__swig_setmethods__)
1452     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcqIndex, name, value)
1453     __swig_getmethods__ = {}
1454     for _s in [pkgAcquireItem]: __swig_getmethods__.update(_s.__swig_getmethods__)
1455     __getattr__ = lambda self, name: _swig_getattr(self, pkgAcqIndex, name)
1456     def __repr__(self):
1457         return "<C pkgAcqIndex instance at %s>" % (self.this,)
1458     def Done(*args): return _apt.pkgAcqIndex_Done(*args)
1459     def Custom600Headers(*args): return _apt.pkgAcqIndex_Custom600Headers(*args)
1460     def DescURI(*args): return _apt.pkgAcqIndex_DescURI(*args)
1461     def __init__(self, *args):
1462         _swig_setattr(self, pkgAcqIndex, 'this', _apt.new_pkgAcqIndex(*args))
1463         _swig_setattr(self, pkgAcqIndex, 'thisown', 1)
1464     def __del__(self, destroy=_apt.delete_pkgAcqIndex):
1465         try:
1466             if self.thisown: destroy(self)
1467         except: pass
1468
1469 class pkgAcqIndexPtr(pkgAcqIndex):
1470     def __init__(self, this):
1471         _swig_setattr(self, pkgAcqIndex, 'this', this)
1472         if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcqIndex, 'thisown', 0)
1473         _swig_setattr(self, pkgAcqIndex,self.__class__,pkgAcqIndex)
1474 _apt.pkgAcqIndex_swigregister(pkgAcqIndexPtr)
1475
1476 class pkgAcqIndexRel(pkgAcquireItem):
1477     __swig_setmethods__ = {}
1478     for _s in [pkgAcquireItem]: __swig_setmethods__.update(_s.__swig_setmethods__)
1479     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcqIndexRel, name, value)
1480     __swig_getmethods__ = {}
1481     for _s in [pkgAcquireItem]: __swig_getmethods__.update(_s.__swig_getmethods__)
1482     __getattr__ = lambda self, name: _swig_getattr(self, pkgAcqIndexRel, name)
1483     def __repr__(self):
1484         return "<C pkgAcqIndexRel instance at %s>" % (self.this,)
1485     def Failed(*args): return _apt.pkgAcqIndexRel_Failed(*args)
1486     def Done(*args): return _apt.pkgAcqIndexRel_Done(*args)
1487     def Custom600Headers(*args): return _apt.pkgAcqIndexRel_Custom600Headers(*args)
1488     def DescURI(*args): return _apt.pkgAcqIndexRel_DescURI(*args)
1489     def __init__(self, *args):
1490         _swig_setattr(self, pkgAcqIndexRel, 'this', _apt.new_pkgAcqIndexRel(*args))
1491         _swig_setattr(self, pkgAcqIndexRel, 'thisown', 1)
1492     def __del__(self, destroy=_apt.delete_pkgAcqIndexRel):
1493         try:
1494             if self.thisown: destroy(self)
1495         except: pass
1496
1497 class pkgAcqIndexRelPtr(pkgAcqIndexRel):
1498     def __init__(self, this):
1499         _swig_setattr(self, pkgAcqIndexRel, 'this', this)
1500         if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcqIndexRel, 'thisown', 0)
1501         _swig_setattr(self, pkgAcqIndexRel,self.__class__,pkgAcqIndexRel)
1502 _apt.pkgAcqIndexRel_swigregister(pkgAcqIndexRelPtr)
1503
1504 class pkgAcqArchive(pkgAcquireItem):
1505     __swig_setmethods__ = {}
1506     for _s in [pkgAcquireItem]: __swig_setmethods__.update(_s.__swig_setmethods__)
1507     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcqArchive, name, value)
1508     __swig_getmethods__ = {}
1509     for _s in [pkgAcquireItem]: __swig_getmethods__.update(_s.__swig_getmethods__)
1510     __getattr__ = lambda self, name: _swig_getattr(self, pkgAcqArchive, name)
1511     def __repr__(self):
1512         return "<C pkgAcqArchive instance at %s>" % (self.this,)
1513     def Failed(*args): return _apt.pkgAcqArchive_Failed(*args)
1514     def Done(*args): return _apt.pkgAcqArchive_Done(*args)
1515     def MD5Sum(*args): return _apt.pkgAcqArchive_MD5Sum(*args)
1516     def DescURI(*args): return _apt.pkgAcqArchive_DescURI(*args)
1517     def Finished(*args): return _apt.pkgAcqArchive_Finished(*args)
1518     def __init__(self, *args):
1519         _swig_setattr(self, pkgAcqArchive, 'this', _apt.new_pkgAcqArchive(*args))
1520         _swig_setattr(self, pkgAcqArchive, 'thisown', 1)
1521     def __del__(self, destroy=_apt.delete_pkgAcqArchive):
1522         try:
1523             if self.thisown: destroy(self)
1524         except: pass
1525
1526 class pkgAcqArchivePtr(pkgAcqArchive):
1527     def __init__(self, this):
1528         _swig_setattr(self, pkgAcqArchive, 'this', this)
1529         if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcqArchive, 'thisown', 0)
1530         _swig_setattr(self, pkgAcqArchive,self.__class__,pkgAcqArchive)
1531 _apt.pkgAcqArchive_swigregister(pkgAcqArchivePtr)
1532
1533 class pkgAcqFile(pkgAcquireItem):
1534     __swig_setmethods__ = {}
1535     for _s in [pkgAcquireItem]: __swig_setmethods__.update(_s.__swig_setmethods__)
1536     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcqFile, name, value)
1537     __swig_getmethods__ = {}
1538     for _s in [pkgAcquireItem]: __swig_getmethods__.update(_s.__swig_getmethods__)
1539     __getattr__ = lambda self, name: _swig_getattr(self, pkgAcqFile, name)
1540     def __repr__(self):
1541         return "<C pkgAcqFile instance at %s>" % (self.this,)
1542     def Failed(*args): return _apt.pkgAcqFile_Failed(*args)
1543     def Done(*args): return _apt.pkgAcqFile_Done(*args)
1544     def MD5Sum(*args): return _apt.pkgAcqFile_MD5Sum(*args)
1545     def DescURI(*args): return _apt.pkgAcqFile_DescURI(*args)
1546     def __init__(self, *args):
1547         _swig_setattr(self, pkgAcqFile, 'this', _apt.new_pkgAcqFile(*args))
1548         _swig_setattr(self, pkgAcqFile, 'thisown', 1)
1549     def __del__(self, destroy=_apt.delete_pkgAcqFile):
1550         try:
1551             if self.thisown: destroy(self)
1552         except: pass
1553
1554 class pkgAcqFilePtr(pkgAcqFile):
1555     def __init__(self, this):
1556         _swig_setattr(self, pkgAcqFile, 'this', this)
1557         if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcqFile, 'thisown', 0)
1558         _swig_setattr(self, pkgAcqFile,self.__class__,pkgAcqFile)
1559 _apt.pkgAcqFile_swigregister(pkgAcqFilePtr)
1560
1561 class pkgAcquire(_object):
1562     __swig_setmethods__ = {}
1563     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcquire, name, value)
1564     __swig_getmethods__ = {}
1565     __getattr__ = lambda self, name: _swig_getattr(self, pkgAcquire, name)
1566     def __repr__(self):
1567         return "<C pkgAcquire instance at %s>" % (self.this,)
1568     def ItemsIter(*args): return _apt.pkgAcquire_ItemsIter(*args)
1569     def GetConfig(*args): return _apt.pkgAcquire_GetConfig(*args)
1570     Continue = _apt.pkgAcquire_Continue
1571     Failed = _apt.pkgAcquire_Failed
1572     Cancelled = _apt.pkgAcquire_Cancelled
1573     def Run(*args): return _apt.pkgAcquire_Run(*args)
1574     def Shutdown(*args): return _apt.pkgAcquire_Shutdown(*args)
1575     def WorkersBegin(*args): return _apt.pkgAcquire_WorkersBegin(*args)
1576     def WorkerStep(*args): return _apt.pkgAcquire_WorkerStep(*args)
1577     def UriBegin(*args): return _apt.pkgAcquire_UriBegin(*args)
1578     def UriEnd(*args): return _apt.pkgAcquire_UriEnd(*args)
1579     def Clean(*args): return _apt.pkgAcquire_Clean(*args)
1580     def TotalNeeded(*args): return _apt.pkgAcquire_TotalNeeded(*args)
1581     def FetchNeeded(*args): return _apt.pkgAcquire_FetchNeeded(*args)
1582     def PartialPresent(*args): return _apt.pkgAcquire_PartialPresent(*args)
1583     def __init__(self, *args):
1584         _swig_setattr(self, pkgAcquire, 'this', _apt.new_pkgAcquire(*args))
1585         _swig_setattr(self, pkgAcquire, 'thisown', 1)
1586     def __del__(self, destroy=_apt.delete_pkgAcquire):
1587         try:
1588             if self.thisown: destroy(self)
1589         except: pass
1590
1591 class pkgAcquirePtr(pkgAcquire):
1592     def __init__(self, this):
1593         _swig_setattr(self, pkgAcquire, 'this', this)
1594         if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcquire, 'thisown', 0)
1595         _swig_setattr(self, pkgAcquire,self.__class__,pkgAcquire)
1596 _apt.pkgAcquire_swigregister(pkgAcquirePtr)
1597
1598 class pkgAcquireStatus(_object):
1599     __swig_setmethods__ = {}
1600     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcquireStatus, name, value)
1601     __swig_getmethods__ = {}
1602     __getattr__ = lambda self, name: _swig_getattr(self, pkgAcquireStatus, name)
1603     def __init__(self): raise RuntimeError, "No constructor defined"
1604     def __repr__(self):
1605         return "<C pkgAcquireStatus instance at %s>" % (self.this,)
1606     __swig_setmethods__["Update"] = _apt.pkgAcquireStatus_Update_set
1607     __swig_getmethods__["Update"] = _apt.pkgAcquireStatus_Update_get
1608     if _newclass:Update = property(_apt.pkgAcquireStatus_Update_get, _apt.pkgAcquireStatus_Update_set)
1609     __swig_setmethods__["MorePulses"] = _apt.pkgAcquireStatus_MorePulses_set
1610     __swig_getmethods__["MorePulses"] = _apt.pkgAcquireStatus_MorePulses_get
1611     if _newclass:MorePulses = property(_apt.pkgAcquireStatus_MorePulses_get, _apt.pkgAcquireStatus_MorePulses_set)
1612     def Fetched(*args): return _apt.pkgAcquireStatus_Fetched(*args)
1613     def MediaChange(*args): return _apt.pkgAcquireStatus_MediaChange(*args)
1614     def IMSHit(*args): return _apt.pkgAcquireStatus_IMSHit(*args)
1615     def Fetch(*args): return _apt.pkgAcquireStatus_Fetch(*args)
1616     def Done(*args): return _apt.pkgAcquireStatus_Done(*args)
1617     def Fail(*args): return _apt.pkgAcquireStatus_Fail(*args)
1618     def Pulse(*args): return _apt.pkgAcquireStatus_Pulse(*args)
1619     def Start(*args): return _apt.pkgAcquireStatus_Start(*args)
1620     def Stop(*args): return _apt.pkgAcquireStatus_Stop(*args)
1621     def __del__(self, destroy=_apt.delete_pkgAcquireStatus):
1622         try:
1623             if self.thisown: destroy(self)
1624         except: pass
1625
1626 class pkgAcquireStatusPtr(pkgAcquireStatus):
1627     def __init__(self, this):
1628         _swig_setattr(self, pkgAcquireStatus, 'this', this)
1629         if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcquireStatus, 'thisown', 0)
1630         _swig_setattr(self, pkgAcquireStatus,self.__class__,pkgAcquireStatus)
1631 _apt.pkgAcquireStatus_swigregister(pkgAcquireStatusPtr)
1632
1633 class pkgPackageManager(_object):
1634     __swig_setmethods__ = {}
1635     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgPackageManager, name, value)
1636     __swig_getmethods__ = {}
1637     __getattr__ = lambda self, name: _swig_getattr(self, pkgPackageManager, name)
1638     def __repr__(self):
1639         return "<C pkgPackageManager instance at %s>" % (self.this,)
1640     Completed = _apt.pkgPackageManager_Completed
1641     Failed = _apt.pkgPackageManager_Failed
1642     Incomplete = _apt.pkgPackageManager_Incomplete
1643     def GetArchives(*args): return _apt.pkgPackageManager_GetArchives(*args)
1644     def DoInstall(*args): return _apt.pkgPackageManager_DoInstall(*args)
1645     def FixMissing(*args): return _apt.pkgPackageManager_FixMissing(*args)
1646     def __init__(self, *args):
1647         _swig_setattr(self, pkgPackageManager, 'this', _apt.new_pkgPackageManager(*args))
1648         _swig_setattr(self, pkgPackageManager, 'thisown', 1)
1649     def __del__(self, destroy=_apt.delete_pkgPackageManager):
1650         try:
1651             if self.thisown: destroy(self)
1652         except: pass
1653
1654 class pkgPackageManagerPtr(pkgPackageManager):
1655     def __init__(self, this):
1656         _swig_setattr(self, pkgPackageManager, 'this', this)
1657         if not hasattr(self,"thisown"): _swig_setattr(self, pkgPackageManager, 'thisown', 0)
1658         _swig_setattr(self, pkgPackageManager,self.__class__,pkgPackageManager)
1659 _apt.pkgPackageManager_swigregister(pkgPackageManagerPtr)
1660
1661 class pkgSourceList(_object):
1662     __swig_setmethods__ = {}
1663     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgSourceList, name, value)
1664     __swig_getmethods__ = {}
1665     __getattr__ = lambda self, name: _swig_getattr(self, pkgSourceList, name)
1666     def __repr__(self):
1667         return "<C pkgSourceList instance at %s>" % (self.this,)
1668     def ReadMainList(*args): return _apt.pkgSourceList_ReadMainList(*args)
1669     def Read(*args): return _apt.pkgSourceList_Read(*args)
1670     def ReadVendors(*args): return _apt.pkgSourceList_ReadVendors(*args)
1671     def Reset(*args): return _apt.pkgSourceList_Reset(*args)
1672     def ReadAppend(*args): return _apt.pkgSourceList_ReadAppend(*args)
1673     def ReadSourceDir(*args): return _apt.pkgSourceList_ReadSourceDir(*args)
1674     def begin(*args): return _apt.pkgSourceList_begin(*args)
1675     def end(*args): return _apt.pkgSourceList_end(*args)
1676     def size(*args): return _apt.pkgSourceList_size(*args)
1677     def empty(*args): return _apt.pkgSourceList_empty(*args)
1678     def FindIndex(*args): return _apt.pkgSourceList_FindIndex(*args)
1679     def GetIndexes(*args): return _apt.pkgSourceList_GetIndexes(*args)
1680     def GetReleases(*args): return _apt.pkgSourceList_GetReleases(*args)
1681     def __init__(self, *args):
1682         _swig_setattr(self, pkgSourceList, 'this', _apt.new_pkgSourceList(*args))
1683         _swig_setattr(self, pkgSourceList, 'thisown', 1)
1684     def __del__(self, destroy=_apt.delete_pkgSourceList):
1685         try:
1686             if self.thisown: destroy(self)
1687         except: pass
1688
1689 class pkgSourceListPtr(pkgSourceList):
1690     def __init__(self, this):
1691         _swig_setattr(self, pkgSourceList, 'this', this)
1692         if not hasattr(self,"thisown"): _swig_setattr(self, pkgSourceList, 'thisown', 0)
1693         _swig_setattr(self, pkgSourceList,self.__class__,pkgSourceList)
1694 _apt.pkgSourceList_swigregister(pkgSourceListPtr)
1695
1696 class GlobalError(_object):
1697     __swig_setmethods__ = {}
1698     __setattr__ = lambda self, name, value: _swig_setattr(self, GlobalError, name, value)
1699     __swig_getmethods__ = {}
1700     __getattr__ = lambda self, name: _swig_getattr(self, GlobalError, name)
1701     def __repr__(self):
1702         return "<C GlobalError instance at %s>" % (self.this,)
1703     def PushState(*args): return _apt.GlobalError_PushState(*args)
1704     def PopState(*args): return _apt.GlobalError_PopState(*args)
1705     def PopBackState(*args): return _apt.GlobalError_PopBackState(*args)
1706     def Errno(*args): return _apt.GlobalError_Errno(*args)
1707     def WarningE(*args): return _apt.GlobalError_WarningE(*args)
1708     def Error(*args): return _apt.GlobalError_Error(*args)
1709     def Warning(*args): return _apt.GlobalError_Warning(*args)
1710     def PendingError(*args): return _apt.GlobalError_PendingError(*args)
1711     def empty(*args): return _apt.GlobalError_empty(*args)
1712     def PopMessage(*args): return _apt.GlobalError_PopMessage(*args)
1713     def Discard(*args): return _apt.GlobalError_Discard(*args)
1714     def DumpErrors(*args): return _apt.GlobalError_DumpErrors(*args)
1715     def __init__(self, *args):
1716         _swig_setattr(self, GlobalError, 'this', _apt.new_GlobalError(*args))
1717         _swig_setattr(self, GlobalError, 'thisown', 1)
1718     def __del__(self, destroy=_apt.delete_GlobalError):
1719         try:
1720             if self.thisown: destroy(self)
1721         except: pass
1722
1723 class GlobalErrorPtr(GlobalError):
1724     def __init__(self, this):
1725         _swig_setattr(self, GlobalError, 'this', this)
1726         if not hasattr(self,"thisown"): _swig_setattr(self, GlobalError, 'thisown', 0)
1727         _swig_setattr(self, GlobalError,self.__class__,GlobalError)
1728 _apt.GlobalError_swigregister(GlobalErrorPtr)
1729
1730
1731 _GetErrorObj = _apt._GetErrorObj
1732 class LuaCacheControl(_object):
1733     __swig_setmethods__ = {}
1734     __setattr__ = lambda self, name, value: _swig_setattr(self, LuaCacheControl, name, value)
1735     __swig_getmethods__ = {}
1736     __getattr__ = lambda self, name: _swig_getattr(self, LuaCacheControl, name)
1737     def __init__(self): raise RuntimeError, "No constructor defined"
1738     def __repr__(self):
1739         return "<C LuaCacheControl instance at %s>" % (self.this,)
1740     def Open(*args): return _apt.LuaCacheControl_Open(*args)
1741     def Close(*args): return _apt.LuaCacheControl_Close(*args)
1742     def __del__(self, destroy=_apt.delete_LuaCacheControl):
1743         try:
1744             if self.thisown: destroy(self)
1745         except: pass
1746
1747 class LuaCacheControlPtr(LuaCacheControl):
1748     def __init__(self, this):
1749         _swig_setattr(self, LuaCacheControl, 'this', this)
1750         if not hasattr(self,"thisown"): _swig_setattr(self, LuaCacheControl, 'thisown', 0)
1751         _swig_setattr(self, LuaCacheControl,self.__class__,LuaCacheControl)
1752 _apt.LuaCacheControl_swigregister(LuaCacheControlPtr)
1753
1754 class Lua(_object):
1755     __swig_setmethods__ = {}
1756     __setattr__ = lambda self, name, value: _swig_setattr(self, Lua, name, value)
1757     __swig_getmethods__ = {}
1758     __getattr__ = lambda self, name: _swig_getattr(self, Lua, name)
1759     def __repr__(self):
1760         return "<C Lua instance at %s>" % (self.this,)
1761     def RunInteractive(*args): return _apt.Lua_RunInteractive(*args)
1762     def RunScript(*args): return _apt.Lua_RunScript(*args)
1763     def RunScripts(*args): return _apt.Lua_RunScripts(*args)
1764     def HasScripts(*args): return _apt.Lua_HasScripts(*args)
1765     def ResetScript(*args): return _apt.Lua_ResetScript(*args)
1766     def SetGlobal(*args): return _apt.Lua_SetGlobal(*args)
1767     def ResetGlobals(*args): return _apt.Lua_ResetGlobals(*args)
1768     def GetGlobalStr(*args): return _apt.Lua_GetGlobalStr(*args)
1769     def GetGlobalStrList(*args): return _apt.Lua_GetGlobalStrList(*args)
1770     def GetGlobalNum(*args): return _apt.Lua_GetGlobalNum(*args)
1771     def GetGlobalBool(*args): return _apt.Lua_GetGlobalBool(*args)
1772     def GetGlobalPtr(*args): return _apt.Lua_GetGlobalPtr(*args)
1773     def GetGlobalPkg(*args): return _apt.Lua_GetGlobalPkg(*args)
1774     def GetGlobalPkgList(*args): return _apt.Lua_GetGlobalPkgList(*args)
1775     def SetDepCache(*args): return _apt.Lua_SetDepCache(*args)
1776     def SetCache(*args): return _apt.Lua_SetCache(*args)
1777     def SetCacheControl(*args): return _apt.Lua_SetCacheControl(*args)
1778     def SetProblemResolver(*args): return _apt.Lua_SetProblemResolver(*args)
1779     def SetDontFix(*args): return _apt.Lua_SetDontFix(*args)
1780     def ResetCaches(*args): return _apt.Lua_ResetCaches(*args)
1781     def GetDepCache(*args): return _apt.Lua_GetDepCache(*args)
1782     def GetCache(*args): return _apt.Lua_GetCache(*args)
1783     def GetCacheControl(*args): return _apt.Lua_GetCacheControl(*args)
1784     def GetProblemResolver(*args): return _apt.Lua_GetProblemResolver(*args)
1785     def GetDontFix(*args): return _apt.Lua_GetDontFix(*args)
1786     def __init__(self, *args):
1787         _swig_setattr(self, Lua, 'this', _apt.new_Lua(*args))
1788         _swig_setattr(self, Lua, 'thisown', 1)
1789     def __del__(self, destroy=_apt.delete_Lua):
1790         try:
1791             if self.thisown: destroy(self)
1792         except: pass
1793
1794 class LuaPtr(Lua):
1795     def __init__(self, this):
1796         _swig_setattr(self, Lua, 'this', this)
1797         if not hasattr(self,"thisown"): _swig_setattr(self, Lua, 'thisown', 0)
1798         _swig_setattr(self, Lua,self.__class__,Lua)
1799 _apt.Lua_swigregister(LuaPtr)
1800
1801
1802 _GetLuaObj = _apt._GetLuaObj
1803 class pkgAcquireStatusDumb(pkgAcquireStatus):
1804     __swig_setmethods__ = {}
1805     for _s in [pkgAcquireStatus]: __swig_setmethods__.update(_s.__swig_setmethods__)
1806     __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcquireStatusDumb, name, value)
1807     __swig_getmethods__ = {}
1808     for _s in [pkgAcquireStatus]: __swig_getmethods__.update(_s.__swig_getmethods__)
1809     __getattr__ = lambda self, name: _swig_getattr(self, pkgAcquireStatusDumb, name)
1810     def __repr__(self):
1811         return "<C pkgAcquireStatusDumb instance at %s>" % (self.this,)
1812     def __init__(self, *args):
1813         _swig_setattr(self, pkgAcquireStatusDumb, 'this', _apt.new_pkgAcquireStatusDumb(*args))
1814         _swig_setattr(self, pkgAcquireStatusDumb, 'thisown', 1)
1815     def __del__(self, destroy=_apt.delete_pkgAcquireStatusDumb):
1816         try:
1817             if self.thisown: destroy(self)
1818         except: pass
1819
1820 class pkgAcquireStatusDumbPtr(pkgAcquireStatusDumb):
1821     def __init__(self, this):
1822         _swig_setattr(self, pkgAcquireStatusDumb, 'this', this)
1823         if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcquireStatusDumb, 'thisown', 0)
1824         _swig_setattr(self, pkgAcquireStatusDumb,self.__class__,pkgAcquireStatusDumb)
1825 _apt.pkgAcquireStatusDumb_swigregister(pkgAcquireStatusDumbPtr)
1826
1827 class ROpPyProgress(OpProgress):
1828     __swig_setmethods__ = {}
1829     for _s in [OpProgress]: __swig_setmethods__.update(_s.__swig_setmethods__)
1830     __setattr__ = lambda self, name, value: _swig_setattr(self, ROpPyProgress, name, value)
1831     __swig_getmethods__ = {}
1832     for _s in [OpProgress]: __swig_getmethods__.update(_s.__swig_getmethods__)
1833     __getattr__ = lambda self, name: _swig_getattr(self, ROpPyProgress, name)
1834     def __repr__(self):
1835         return "<C ROpPyProgress instance at %s>" % (self.this,)
1836     __swig_setmethods__["Op"] = _apt.ROpPyProgress_Op_set
1837     __swig_getmethods__["Op"] = _apt.ROpPyProgress_Op_get
1838     if _newclass:Op = property(_apt.ROpPyProgress_Op_get, _apt.ROpPyProgress_Op_set)
1839     __swig_setmethods__["SubOp"] = _apt.ROpPyProgress_SubOp_set
1840     __swig_getmethods__["SubOp"] = _apt.ROpPyProgress_SubOp_get
1841     if _newclass:SubOp = property(_apt.ROpPyProgress_SubOp_get, _apt.ROpPyProgress_SubOp_set)
1842     __swig_setmethods__["Percent"] = _apt.ROpPyProgress_Percent_set
1843     __swig_getmethods__["Percent"] = _apt.ROpPyProgress_Percent_get
1844     if _newclass:Percent = property(_apt.ROpPyProgress_Percent_get, _apt.ROpPyProgress_Percent_set)
1845     __swig_setmethods__["MajorChange"] = _apt.ROpPyProgress_MajorChange_set
1846     __swig_getmethods__["MajorChange"] = _apt.ROpPyProgress_MajorChange_get
1847     if _newclass:MajorChange = property(_apt.ROpPyProgress_MajorChange_get, _apt.ROpPyProgress_MajorChange_set)
1848     def CheckChange(*args): return _apt.ROpPyProgress_CheckChange(*args)
1849     def __init__(self, *args):
1850         _swig_setattr(self, ROpPyProgress, 'this', _apt.new_ROpPyProgress(*args))
1851         _swig_setattr(self, ROpPyProgress, 'thisown', 1)
1852     def __del__(self, destroy=_apt.delete_ROpPyProgress):
1853         try:
1854             if self.thisown: destroy(self)
1855         except: pass
1856
1857 class ROpPyProgressPtr(ROpPyProgress):
1858     def __init__(self, this):
1859         _swig_setattr(self, ROpPyProgress, 'this', this)
1860         if not hasattr(self,"thisown"): _swig_setattr(self, ROpPyProgress, 'thisown', 0)
1861         _swig_setattr(self, ROpPyProgress,self.__class__,ROpPyProgress)
1862 _apt.ROpPyProgress_swigregister(ROpPyProgressPtr)
1863
1864 class OpPyProgress(ROpPyProgress):
1865         def __init__(self):
1866                 ROpPyProgress.__init__(self, self)
1867         def __repr__(self):
1868                 return "<C OpPyProgress instance at %s>" % self.this
1869
1870