summaryrefslogtreecommitdiff
path: root/apt/package.py
AgeCommit message (Collapse)AuthorFilesLines
2015-06-30apt/package.py: Add rawtype property to Dependency classMichael Schaller1-4/+18
2015-06-28BaseDependency.__repr__: Replace pre_depend with rawtypeMichael Schaller1-2/+2
pre_depend only states if the relation is PreDepends, rawtype gives the relation type itself.
2015-06-10Improved docstring of the Version.get_dependencies method.Michael Schaller1-1/+8
2015-06-10Fixed docstring of BaseDependency.version property.Michael Schaller1-2/+4
2015-06-10apt.package: Only reference Launchpad for missing changelogs on UbuntuJulian Andres Klode1-5/+9
The new message is not really helpful, but hey, who cares. Closes: #781270
2015-06-10Fix indentation and docstring problemsvon1-0/+1
Closes: #784910
2015-05-22Fix apt.Package.installed_files for multi-arch packagesMichael Vogt1-1/+1
Thanks to Michael Schaller LP: #1313699
2014-04-02apt/package.py: Do not shadow _Julian Andres Klode1-3/+3
This can lead to bugs later on and makes pyflakes 0.8 cry.
2014-01-25apt/package.py: Pass an apt_pkg.Dependency to BaseDependencyJulian Andres Klode1-19/+41
Instead of passing the properties to __init__(), let's just pass the apt_pkg.Dependency. Store that in a _dep attribute, and provide properties to provide the API. The other classes do it this way as well. Reported-by: Michael Schaller <michael@5challer.de>
2014-01-25apt/package.py: Improved readability and documentation of ↵Michael Schaller1-3/+18
BaseDependency.__dstr().
2014-01-06apt/package.py: Fix BaseDependency.__dstr.__ne__()Julian Andres Klode1-1/+1
It turns out I missed this. Just simplify it to return not self.__eq__(other). Also add a test case for it. Reported-by: Michael Schaller <michael@5challer.de>
2014-01-06Unify list of comparison type values everywhereJulian Andres Klode1-1/+1
They are now ordered and include the != and < operators in all cases.
2014-01-06apt, doc: Fix the list of comp_type valuesJulian Andres Klode1-1/+1
Reported-by: Michael Schaller <michael@5challer.de>
2014-01-06Use a single code base for Python 2 and 3Julian Andres Klode1-8/+18
This is much better than running 2to3 during the build, as it gives us more control over the Python 3 code.
2014-01-06Use print_function everywhereJulian Andres Klode1-34/+36
This brings the code closer to Python 3. Automatically converted using 2to3 -f print.
2014-01-05make test_pep8.py passMichael Vogt1-10/+2
2014-01-05apt/cache.py, apt/package.py: Fixed PEP8 and pyflakes issuesMichael Schaller1-21/+19
This commit removed the unused local variable 'transient' in 'apt/cache.py' and the unused import 'warnings' in 'apt/package.py'.
2013-10-10apt/package.py: mark_upgrade misuses FromUser to set auto-installedDaniel Hartwig1-2/+3
Package.mark_upgrade uses FromUser for it's side effect of setting a package as auto-installed (or not). However, FromUser is also influential in pkgDepCache::IsModeChangeOk to determine whether an action should override a dpkg hold, etc.. Closes: #686726
2013-10-08apt/package.py: Add a Package.has_config_files property (Closes: #712749)Julian Andres Klode1-0/+5
The name might be a bit misleading, but I cannot find a short name that completely describes this check.
2013-09-11Completely remove deprecated stuffJulian Andres Klode1-234/+0
2013-05-08merged from experimental and uploaded to sidMichael Vogt1-0/+2
2013-03-19* apt/package.py:Michael Vogt1-0/+2
- export codename in apt.package.Origin as well (closes: #703401)
2013-03-13Fix the last commitJulian Andres Klode1-4/+2
2013-03-13apt/package.py: Try both filenames for package file listsJulian Andres Klode1-6/+11
(Closes: #700715)
2012-03-27* apt/package.py:Michael Vogt1-1/+4
- if there is no Version.uri return None
2012-01-30GREEN: apt.Version has a "policy_priority" propertyMichael Vogt1-0/+11
2011-12-01merged from lp:~mvo/apt/mvoMichael Vogt1-5/+11
2011-11-22apt/package.py: use lt() instead of cmp()Michael Vogt1-2/+2
2011-11-17make Dependency a list (it should probably also renamed to DependencyOrGroup ↵Michael Vogt1-8/+6
or something), thanks to Christop Groth
2011-11-17allow Dependency object to be iteratable, this allows to writeMichael Vogt1-0/+3
code like: for or_dep_group in pkg.candidate.dependencies: for dep in or_dep_group: do_something()
2011-11-17* apt/package.py:Michael Vogt1-0/+5
- add new "suggests" property, thanks to Christop Groth
2011-10-05* tests/test_apt_cache.py:Michael Vogt1-0/+3
- add __cmp__ to apt.Package so that sort() sorts by name on list of package objects
2011-09-28* apt/package.py:Michael Vogt1-2/+2
- packages in marked_install state can also be auto-removable
2011-08-09apt/package.py: make print statements py3 compatbileMichael Vogt1-4/+4
2011-05-27apt/package.py: fix a few typos [formated->formatted] (Closes: #597054)Julian Andres Klode1-4/+4
2011-05-27Fix get_changelog in Python 3 (Closes: #626532)Julian Andres Klode1-1/+1
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).