summaryrefslogtreecommitdiff
path: root/python/depcache.cc
AgeCommit message (Collapse)AuthorFilesLines
2009-06-04python/: Unify naming conventions for all new names.Julian Andres Klode1-10/+10
Unify all names to follow these rules: 1. Replace the first [A-Z] with the lowercase version [a-z] 2. Replace multiple [A-Z] with [A-Z][a-z] (one upper, remaining ones lowercase) 3. Replace all remaining [A-Z] with _[a-z] This brings us from 'FileName' to 'file_name' and from 'DescURI' to 'desc_uri'. We will at a later stage add some exceptions to this rule, like 'filename' instead of 'file_name', to improve readability.
2009-06-03python/: Convert most names to PEP8 naming conventions (except ↵Julian Andres Klode1-8/+49
Version,PackageFile,MetaIndex). On our way to close Bug#481061, this converts almost all names to PEP 8 naming conventions. Missing are now apt_pkg.Version, apt_pkg.PackageFile, apt_pkg.MetaIndex and apt.progress.*. In case of the missing apt_pkg classes, they are not converted yet because they do not use getset descriptors yet. apt.progress.* has not been converted yet because the extension interacts with it, and we first need to modify the extension to recognize the new names, as well as the old names (old applications shouldn't break).
2009-04-24* python/*.cc: Fix build failures with python2.4-dbg.Julian Andres Klode1-2/+2
2009-04-19ActionGroups can be used as a context manager for the 'with' statement.Julian Andres Klode1-5/+27
2009-04-19* python/*.cc: Export all types and add a __new__() method to them.Julian Andres Klode1-44/+96
Some names may be changed before the release, but this is a good draft.
2009-04-15* Introduce support for Python 3 (Closes: #523645)Julian Andres Klode1-0/+6
This is the first initial port to Python 3. The API is almost completely identical to the one found in Python 2, except that functions working with binary data require bytes (md5sum,sha1sum,sha256sum,Base64Encode). Using setup3.py to install the modules will not work, because the apt package still has to be converted to Python 3. For the package, we call 2to3-3.1 in debian/rules to do this automatically.
2009-04-14* python/depcache.cc: Use tp_methods and tp_getset for PkgDepCacheTypeJulian Andres Klode1-28/+49
2009-04-14* Remove any trailing whitespaceJulian Andres Klode1-6/+6
2009-04-13* python/cdrom.cc, python/depcache.cc: Use tp_methods for Cdrom, ↵Julian Andres Klode1-20/+30
ProblemResolver, ActionGroup
2009-01-11Merge Ben Finney's whitespace changes (Closes: #481563)Julian Andres Klode1-85/+85
2008-07-31fix GetCandidateVer() reporting incorrect versions afterMichael Vogt1-2/+4
SetCandidateVer() was used. Thanks to Julian Andres Klode for the test-case (LP: #237372)
2008-05-16Remove trailing whitespace.Ben Finney1-85/+85
2007-12-04merged from the ubuntu branchMichael Vogt1-1/+1
2007-11-23* python/depcache.cc:Michael Vogt1-5/+20
- be more threading friendly
2007-03-14* python/depache.cc:Michael Vogt1-0/+15
- properly support isAutoInstalled flag
2007-01-26* support "fromUser()" flag in apt.Package.markInstall() to makeMichael Vogt1-2/+4
setting the automatic install information available
2006-10-06* python/depcache.cc:Michael Vogt1-0/+70
- suport for pkgActionGrup added
2006-06-26* python/depcache.cc:Michael Vogt1-0/+15
- added "DepCache.IsGarbage" flag
2006-01-09* fix broken returns a usefull value nowMichael Vogt1-4/+5
2006-01-09* added MinimizeUpgrade, Upgrade returns a bool nowMichael Vogt1-3/+19
2005-11-22* less debug messagesMichael Vogt1-3/+3
2005-11-17* fail if a download failsMichael Vogt1-2/+18
2005-10-24* custom waitChild() added in installProgressMichael Vogt1-6/+5
2005-10-21* fix a crasher in the install interfaceMichael Vogt1-1/+1
2005-10-20* progress interface fully working now, commit interface tooMichael Vogt1-29/+10
2005-07-01* added "Downloadable" as attribute to a VerIteratorMichael Vogt1-0/+1
2005-07-01* SetReInstall() added to depcacheMichael Vogt1-0/+19
2005-06-24* support autoInst flag in depcache.MarkInstall()Michael Vogt1-3/+3
2005-06-20* added support for the pkgProblemResolver()Michael Vogt1-1/+161
2005-06-03* fixes, MarkedInstall() checks for "NewInstall()" now, we have "Upgrade()" ↵Michael Vogt1-1/+1
to check for upgrades
2005-06-01* Cache.GetChanges() added, support for Marked{Downgrade,Reinstall} tests addedMichael Vogt1-0/+33
2005-05-27* make better use of the cachefile in the depcache, avoid a stupid double ↵Michael Vogt1-68/+62
depcache building
2005-05-09* more work on the native python apt interfaceMichael Vogt1-1/+1
2005-05-03* merged with Greek0@gmx.net--2005-main, native apt interface added, fixed a ↵Michael Vogt1-5/+1
refcount problem, added tests/ directory * apt/package.py, apt/__init__.py: - started a native python interface that will wrap the uglier bits of python-apt in the future * tests/pkgsrcrecords.py: - started a test directory * python/pkgsrcrecords.cc: - fixed a refcount problem - merged with Greek0s tree Patches applied: * Greek0@gmx.net--2005-main/python-apt--debian--0.6--base-0 tag of apt@packages.debian.org/python-apt--main--0--patch-8 * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-1 Minor typo fix in debian/rules * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-2 Typo fix in depcache.cc which caused wrong function to be called * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-3 Improved CppPyObject, leading to a better PkgDepCacheStruct * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-4 Improved build system * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-5 Restored the old tar.cc to work with the older apt in debian again * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-6 Fix for Debian #304296 (Segfault in CppOwnedDealloc) * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-7 Fix for Debian #304903 (FD leak) * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-8 Fixed the compilation error introduced in patch-6 * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-9 New debian/changelog from Debians python-apt 0.6.10 * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-10 Minor changes to make the packages lintian/linda clean * apt@packages.debian.org/python-apt--main--0--patch-8 Merge michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0
2005-04-11* alway call pkgApplyStatus() in DepCache.Init()Michael Vogt1-0/+2
2005-04-08* InstallProgress has overridable fork interface now, added example for the ↵Michael Vogt1-8/+15
use of a vte terminal
2005-04-08* simple InstallProgress interface addedMichael Vogt1-1/+6
2005-04-08* started the DepCache.Commit() interface Michael Vogt1-1/+133
2005-03-31* merged with the pkgDepCache treeMichael Vogt1-17/+14
Patches applied: * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-10 * version number is 0.5.36ubuntu1 * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-11 * return "None" in GetCandidateVer if no Candidate is found * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-12 * changelog entry * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-13 * never do "DepCache.Init()" implicit * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-14 * reference counting added for Py_None
2005-03-31* debcache has a "Packages" attribute now too (like the cache)Michael Vogt1-1/+6
2005-03-09* OpProgress interface added for DepCacheMichael Vogt1-5/+21
2005-03-09* star-merged with my pkgDepCache branchMichael Vogt1-2/+20
Patches applied: * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-8 * merged with matt again, implemented DepCache.ReadPinFile(), fixed a bug in DepCache.Upgrade() * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-9 * added ReadPinFile to the depcache example code, added a comment to checkstate that there is also depcache that honors the default policy
2005-03-02* merged with matts tree, resolved lots of conflictsMichael Vogt1-40/+216
Patches applied: * apt@packages.debian.org/python-apt--main--0--base-0 tag of apt@arch.ubuntu.com/python-apt--MAIN--0--patch-44 * apt@packages.debian.org/python-apt--main--0--patch-1 Merge michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0 * apt@packages.debian.org/python-apt--main--0--patch-2 0.5.33 * apt@packages.debian.org/python-apt--main--0--patch-3 Add arch-build target to rules * apt@packages.debian.org/python-apt--main--0--patch-4 Fix typo (fund->find) * apt@packages.debian.org/python-apt--main--0--patch-5 Restore Ubuntu changes * apt@packages.debian.org/python-apt--main--0--patch-6 0.5.35 -> hoary * apt@packages.debian.org/python-apt--main--0--patch-7 Fix build-depends, somehow lost in merge * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--base-0 tag of apt@arch.ubuntu.com/python-apt--MAIN--0--patch-44 * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-1 * merged from my mvo tree, removed all non-pkgDepCache releated stuff and cleaned up the code * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-2 * beefed up the example code, added DepCache.Upgrade() * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-3 * implemented the marking interface * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-4 * state information and marking interface * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-5 * fixed wrong types for "UsrSize" and "DebSize" * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-6 * added DepCache.FixBroken() * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-7 * example code how a overview about the changes can be computed
2005-02-23* apt_pkg.GetCache() supports a progress callback now tooMichael Vogt1-63/+20
2005-02-23* progress callback support addedMichael Vogt1-11/+63
2005-02-23* added basic depcache support Michael Vogt1-0/+149