summaryrefslogtreecommitdiff
path: root/python/apt_pkgmodule.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-12 19:07:55 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-12 19:07:55 +0200
commit5b489a994d009771d7f4d5beec45bbbb5468cd58 (patch)
tree799087779e02af7648232dcf36889263329408d7 /python/apt_pkgmodule.cc
parent64513033774fb0264c601f021da5d5f6345c3dd4 (diff)
downloadpython-apt-5b489a994d009771d7f4d5beec45bbbb5468cd58.tar.gz
python/hashes.cc: Introduce the Hashes class.
The Hashes class is a function which calculates all supported hashes for one input. DebImg will use this for calculating the hashes of files.
Diffstat (limited to 'python/apt_pkgmodule.cc')
-rw-r--r--python/apt_pkgmodule.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc
index 3f4aae37..4c0fd5ed 100644
--- a/python/apt_pkgmodule.cc
+++ b/python/apt_pkgmodule.cc
@@ -618,6 +618,7 @@ extern "C" void initapt_pkg()
ADDTYPE(Module,"IndexRecords",&PyIndexRecords_Type);
ADDTYPE(Module,"HashString",&PyHashString_Type);
ADDTYPE(Module,"Policy",&PyPolicy_Type);
+ ADDTYPE(Module,"Hashes",&PyHashes_Type);
// Tag file constants
PyModule_AddObject(Module,"REWRITE_PACKAGE_ORDER",
CharCharToList(TFRewritePackageOrder));