From 1bf52388c98e72768b8f883726ee7e2e2992e4ff Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 18 Feb 2008 16:51:47 +0100 Subject: * python/apt_pkgmodule.cc: - add InstState{Ok,ReInstReq,Hold,HoldReInstReq} constants * apt/cache.py: - add reqReinstallPkgs property that lists all packages in ReInstReq or HoldReInstReq --- python/apt_pkgmodule.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/apt_pkgmodule.cc') diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc index 15f7d238..ae1cf7be 100644 --- a/python/apt_pkgmodule.cc +++ b/python/apt_pkgmodule.cc @@ -507,6 +507,11 @@ extern "C" void initapt_pkg() AddInt(Dict,"CurStateHalfInstalled",pkgCache::State::HalfInstalled); AddInt(Dict,"CurStateConfigFiles",pkgCache::State::ConfigFiles); AddInt(Dict,"CurStateInstalled",pkgCache::State::Installed); + + AddInt(Dict,"InstStateOk",pkgCache::State::Ok); + AddInt(Dict,"InstStateReInstReq",pkgCache::State::ReInstReq); + AddInt(Dict,"InstStateHold",pkgCache::State::Hold); + AddInt(Dict,"InstStateHoldReInstReq",pkgCache::State::HoldReInstReq); } /*}}}*/ -- cgit v1.2.3