summaryrefslogtreecommitdiff
path: root/python/apt_pkgmodule.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2008-02-19 19:26:32 +0100
committerMichael Vogt <egon@bottom>2008-02-19 19:26:32 +0100
commit5c84be897a08247a5146cccbac7134cadfb43310 (patch)
treeccffceb503eaa2d926cc75171dd3723a4a1de462 /python/apt_pkgmodule.cc
parent4d46ff50f061c4742713e906430d73fdc927b250 (diff)
parent1bf52388c98e72768b8f883726ee7e2e2992e4ff (diff)
downloadpython-apt-5c84be897a08247a5146cccbac7134cadfb43310.tar.gz
* use the new CacheFile::ListUpdate() code
* add example in doc/examples/update.py * python/pkgrecords.cc: - export the Homepage field * python/tar.cc: - fix .lzma extraction (thanks to bigjools) * python/sourcelist.cc: - support GetIndexes() GetAll argument to implement something like --print-uris * 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
Diffstat (limited to 'python/apt_pkgmodule.cc')
-rw-r--r--python/apt_pkgmodule.cc5
1 files changed, 5 insertions, 0 deletions
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);
}
/*}}}*/