summaryrefslogtreecommitdiff
path: root/apt/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/package.py')
-rw-r--r--apt/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/apt/package.py b/apt/package.py
index f311eaff..f5aa5237 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -1051,6 +1051,11 @@ class Package(object):
"""Return True if the installed package is broken."""
return self._pcache._depcache.is_now_broken(self._pkg)
+ @property
+ def has_config_files(self):
+ """Checks whether the package is is the config-files state."""
+ return self. _pkg.current_state == apt_pkg.CURSTATE_CONFIG_FILES
+
# depcache actions
def mark_keep(self):