summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-09-18 14:48:12 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-09-18 14:48:12 +0200
commit4474bb62bda8087f63a9e35edb2f6fcaa1bd96d1 (patch)
tree7c30d3014298be41bd179ed60fead53515de660e
parentd44831bb1d10ac1bc29690fd226209fb71b91b42 (diff)
downloadpython-apt-4474bb62bda8087f63a9e35edb2f6fcaa1bd96d1.tar.gz
add "SelState{Unknown,Install,Hold,DeInstall,Purge}" constant
-rw-r--r--debian/changelog2
-rw-r--r--python/apt_pkgmodule.cc6
2 files changed, 7 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index e9d5710c..dc9c2501 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-python-apt (0.7.7.2) UNRELEASED; urgency=low
+python-apt (0.7.8) UNRELEASED; urgency=low
* python/cache.cc:
- fix crash if Ver.PriorityType() returns NULL
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc
index fd7a83cd..fae85f00 100644
--- a/python/apt_pkgmodule.cc
+++ b/python/apt_pkgmodule.cc
@@ -517,6 +517,12 @@ extern "C" void initapt_pkg()
AddInt(Dict,"CurStateConfigFiles",pkgCache::State::ConfigFiles);
AddInt(Dict,"CurStateInstalled",pkgCache::State::Installed);
+ AddInt(Dict,"SelStateUnknown",pkgCache::State::Unknown);
+ AddInt(Dict,"SelStateInstall",pkgCache::State::Install);
+ AddInt(Dict,"SelStateHold",pkgCache::State::Hold);
+ AddInt(Dict,"SelStateDeInstall",pkgCache::State::DeInstall);
+ AddInt(Dict,"SelStatePurge",pkgCache::State::Purge);
+
AddInt(Dict,"InstStateOk",pkgCache::State::Ok);
AddInt(Dict,"InstStateReInstReq",pkgCache::State::ReInstReq);
AddInt(Dict,"InstStateHold",pkgCache::State::Hold);