summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/library/apt_pkg.rst7
-rw-r--r--doc/source/whatsnew/1.0.rst2
-rw-r--r--python/cache.cc4
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,