summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-06-10 15:37:16 +0200
committerJulian Andres Klode <jak@debian.org>2015-06-10 15:40:11 +0200
commitce08058eebc60536cc8088ee79efc80a40f13c9e (patch)
treeba4d701c7860db14a4bd52507a7eb1b9e2614898 /python
parentb263b8d1a6a84bd34290a1ae52d3c1ee33124d1b (diff)
downloadpython-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
Diffstat (limited to 'python')
-rw-r--r--python/cache.cc4
1 files changed, 0 insertions, 4 deletions
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,