summaryrefslogtreecommitdiff
path: root/apt/package.py
AgeCommit message (Collapse)AuthorFilesLines
2011-04-12apt.package: Add 'tasks' to Version, improve doc (Closes: #619574)Julian Andres Klode1-4/+34
2011-04-06all: Fix all instances of ResourceWarning about unclosed filesJulian Andres Klode1-7/+5
2011-04-04* apt/cache.py, apt/package.py:Julian Andres Klode1-8/+34
- Add architecture property to apt.Package (LP: #703472) - Change apt.Package.name to use get_fullname(pretty=True) (LP: #740072)
2011-01-10merged lp:~geser/ubuntu/natty/python-apt/build-with-py3.2 (manually as bzr ↵Michael Vogt1-1/+1
thinks the branches have nothing in common)
2010-11-17* apt/package.py:Julian Andres Klode1-1/+1
- Fix docstring of Package.mark_delete() (Closes: #599042)
2010-08-27add "provides" property to the apt.Version objectsMichael Vogt1-0/+5
2010-05-19Add Version.source_version and enhance Sebastian's patch to make useJulian Andres Klode1-8/+22
of it, in order to find the best changelog for the package.
2010-05-19Merge a patch from Sebastian Heinlein to make get_changelog() onlyJulian Andres Klode1-17/+8
check sources where source version >= binary version (Closes: #581831).
2010-03-31apt/package.py: Fix fetch_source() to work when source name = binary name ↵Julian Andres Klode1-5/+5
(LP: #552400).
2010-03-30apt/package.py: Decode using utf-8 in installed_files (LP: #407953).Julian Andres Klode1-2/+2
2010-03-08apt/package.py: Always return unicode strings in Package.get_changelog ↵Julian Andres Klode1-7/+13
(Closes: #572998).
2010-03-03Use the binary package version in Version.fetch_source() if theJulian Andres Klode1-1/+2
source version is not specified (i.e. in the normal case).
2010-03-01Style fixes.Julian Andres Klode1-1/+0
2010-03-01* apt/package.py:Julian Andres Klode1-1/+11
- Create a string class BaseDependency.__dstr which makes '>' equal to '>>' and '<' equal to '<<' (compatibility).
2010-02-07* Fix some places where the old API was still used:Julian Andres Klode1-4/+4
- apt/utils.py: Completely ported, previous one was old-API from Ubuntu. - apt/cache.py: Use the new progress classes instead of the old ones. - apt/package.py: Various smaller issues fixed, probably caused by merge.
2010-01-15Make all class-level constants have uppercase names.Julian Andres Klode1-2/+2
2010-01-15Merge 0.7.13.5 pre.Julian Andres Klode1-2/+7
2010-01-13add "enhances" propertyMichael Vogt1-0/+5
2009-11-07apt/package.py: Fix dictionary access of VersionList, patchJulian Andres Klode1-2/+2
by Sebastian Heinlein (Closes: #554895).
2009-09-16Merge 0.7.13.0 - 0.7.13.3 from unstable.Julian Andres Klode1-3/+10
* apt/cache.py: - add actiongroup() method (backport from 0.7.92) - re-work the logic in commit() to fail if installArchives() returns a unexpected result * apt/progress/__init__.py: - catch exceptions in pm.DoInstall() * apt/package.py: - Export if a package is an essential one (Closes: #543428) * python/depcache.cc: - Make ActionGroups context managers so apt.Cache.actiongroup() has the same behavior as in 0.7.92 * apt/cache.py: - Add raiseOnError option to Cache.update() (Closes: #545474) * apt/package.py: - Use the source version instead of the binary version in fetch_source(). * apt/progress/__init__.py: - Correctly ignore ECHILD by checking before EINTR (Closes: #546007) * apt/cache.py: - Convert argument to str in __getitem__() (Closes: #542965).
2009-08-28apt/package.py: Use the source version instead of the binary version in ↵Julian Andres Klode1-3/+4
fetch_source().
2009-08-25apt/package.py: Export if a package is an essential one (Closes: #543428)Sebastian Heinlein1-0/+5
2009-08-21Merge 0.7.13.1 from unstable.Julian Andres Klode1-1/+1
2009-08-21* apt/package.py: Fix Version.get_dependencies() to not ignore the arguments.Julian Andres Klode1-1/+1
2009-08-21Merge 0.7.13.0 from unstable.Julian Andres Klode1-6/+30
2009-08-21apt/package.py: Add Package.is_now_broken and Package.is_inst_broken.Julian Andres Klode1-0/+10
2009-08-20apt/package.py: Do not mark the package as manually installed on upgrade ↵Julian Andres Klode1-1/+2
(Closes: #542699)
2009-08-19apt/package.py: fix typo in keyword argumentMichael Vogt1-1/+1
2009-08-18apt/package.py: Introduce Version.get_dependencies().Julian Andres Klode1-19/+12
Introduce Version.get_dependencies() which takes one or more types of dependencies and returns a list of Dependency objects. This prevents code duplication in Version.dependencies and Version.recommends and allows to access other types as well.
2009-08-18* apt/package.py:Michael Vogt1-1/+20
- add "recommends" property
2009-07-31apt/package.py: Fix apt_pkg.Version_compare => apt_pkg.version_compare.Julian Andres Klode1-2/+2
2009-07-31apt/progress: Large update, introducing apt.progress.base.InstallProgress.Julian Andres Klode1-1/+1
This contains many updates including the introduction of a new InstallProgress class which replaces the old InstallProgress and DpkgInstallProgress classes.
2009-07-31* apt/package.py: Add missing argument to Version.__le__() and Version.__ge__()Julian Andres Klode1-2/+2
2009-07-30Merge 0.7.11.1-0.7.12.0 from unstable.Julian Andres Klode1-11/+39
2009-07-30Return VersionList objects in Package.versions, which are sequences and also ↵Julian Andres Klode1-3/+83
provide features of mappings. (partial API BREAK)
2009-07-30apt/package.py: Make comparisons of Version object more robust.Julian Andres Klode1-5/+35
2009-07-30apt/package.py: Allow to set the candidate of a package (Closes: #523997)Julian Andres Klode1-3/+13
+ Support assignments to the 'candidate' property of Package objects. + Initial patch by Sebastian Heinlein
2009-07-17apt: Use apt_pkg.gettext instead of Python's gettext.Julian Andres Klode1-6/+1
2009-07-16apt/progress: Move apt.progress to apt.progress.oldJulian Andres Klode1-13/+14
2009-07-12apt/package.py: Adjust AcquireFile() usage to future changes.Julian Andres Klode1-8/+9
The underlying C++ objects of the AcquireFile() objects are currently immortal. This should change at a later stage, to match the behavior of the C++ class. But AcquireItems needs to be fixed first to not segfault anymore.
2009-07-08doc/source/apt_pkg.rst: Update the documentation to reflect the latest changes.Julian Andres Klode1-1/+1
2009-06-22apt/package.py: Do not re-define built-in names, fix small issue in ↵Julian Andres Klode1-21/+25
Version.__eq__()
2009-06-22apt/package.py: Drop Package.get_version() again.Julian Andres Klode1-4/+0
2009-06-22Add apt_pkg.DepCache.mark_auto() and apt.Package.mark_auto() methods toJulian Andres Klode1-0/+13
mark a package as automatically installed.
2009-06-21apt/package.py: Remove duplicated code in Version.fetch_source()Julian Andres Klode1-8/+3
2009-06-14apt/package.py: Return VersionList objects in Package.versions.Julian Andres Klode1-9/+84
VersionList objects provide the same features as sequences (they are even derived from collections.Sequence in Python 2.6 and newer), but also provide a mapping like interface. They are also more efficient than lists because Version objects are only created when they are accessed.
2009-06-14apt/package.py: Re-add Package.markedInstallJulian Andres Klode1-0/+1
2009-06-09apt/package.py: Use destfile instead of dest_file.Julian Andres Klode1-2/+2
2009-06-05apt/package.py: Add Package.get_version() which returns a Version instanceJulian Andres Klode1-0/+7
for the given version string or None (Closes: #523998)
2009-06-05Introduce the rename rules formally, and add some exceptions.Julian Andres Klode1-5/+5