diff options
| author | Julian Andres Klode <jak@debian.org> | 2015-06-10 15:37:16 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2015-06-10 15:40:11 +0200 |
| commit | ce08058eebc60536cc8088ee79efc80a40f13c9e (patch) | |
| tree | ba4d701c7860db14a4bd52507a7eb1b9e2614898 | |
| parent | b263b8d1a6a84bd34290a1ae52d3c1ee33124d1b (diff) | |
| download | python-apt-ce08058eebc60536cc8088ee79efc80a40f13c9e.tar.gz | |
apt_pkg.Package: Drop the unset 'auto' attribute
If somebody uses that, it could assume that no package is
auto removable, because the attribute is always 0. So let's
just remove that instead of having crazy code working the
way it's not intended.
Closes: #565364
| -rw-r--r-- | doc/source/library/apt_pkg.rst | 7 | ||||
| -rw-r--r-- | doc/source/whatsnew/1.0.rst | 2 | ||||
| -rw-r--r-- | python/cache.cc | 4 |
3 files changed, 2 insertions, 11 deletions
diff --git a/doc/source/library/apt_pkg.rst b/doc/source/library/apt_pkg.rst index bdf096a4..5ccb93ae 100644 --- a/doc/source/library/apt_pkg.rst +++ b/doc/source/library/apt_pkg.rst @@ -820,13 +820,6 @@ Resolving Dependencies with :class:`ProblemResolver` **Flags**: - .. attribute:: auto - - This flag is here for compatibility purposes and does not appear to - be used anymore in APT. To find out whether a package is marked as - automatically installed, use :meth:`DepCache.is_auto_installed` - instead. - .. attribute:: essential Whether the package has the 'Essential' flag set; that is, diff --git a/doc/source/whatsnew/1.0.rst b/doc/source/whatsnew/1.0.rst index bc022463..5fa92ece 100644 --- a/doc/source/whatsnew/1.0.rst +++ b/doc/source/whatsnew/1.0.rst @@ -29,6 +29,8 @@ Removed Therefore, there is no replacement, please use PackageKit or aptdaemon for installation in graphical environments. +* The attribute :attr:`apt_pkg.Package.auto` was not set anymore, and thus + removed. Maintenance ----------- diff --git a/python/cache.cc b/python/cache.cc index 17ccc252..e03462a5 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -614,7 +614,6 @@ MkGet(PackageGetInstState,MkPyNumber(Pkg->InstState)) MkGet(PackageGetCurrentState,MkPyNumber(Pkg->CurrentState)) MkGet(PackageGetID,MkPyNumber(Pkg->ID)) # -MkGet(PackageGetAuto,PyBool_FromLong((Pkg->Flags & pkgCache::Flag::Auto) != 0)) MkGet(PackageGetEssential,PyBool_FromLong((Pkg->Flags & pkgCache::Flag::Essential) != 0)) MkGet(PackageGetImportant,PyBool_FromLong((Pkg->Flags & pkgCache::Flag::Important) != 0)) #undef MkGet @@ -715,9 +714,6 @@ static PyGetSetDef PackageGetSet[] = { "CURSTATE_UNPACKED of the apt_pkg module."}, {"id",PackageGetID,0, "The numeric ID of the package"}, - {"auto",PackageGetAuto,0, - "Ignore it, it does nothing. You want to use\n" - "DepCache.is_auto_installed instead."}, {"essential",PackageGetEssential,0, "Boolean value determining whether the package is essential."}, {"important",PackageGetImportant,0, |
