From 55eaca76738417f719c1e3b66da94c7307308d74 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 24 Apr 2009 19:01:38 +0200 Subject: * python/*.cc: Fix build failures with python2.4-dbg. --- python/acquire.cc | 4 ++-- python/apt_pkgmodule.cc | 4 ++-- python/cache.cc | 2 +- python/depcache.cc | 4 ++-- python/tag.cc | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'python') diff --git a/python/acquire.cc b/python/acquire.cc index 1cdf0cb9..ccd3a479 100644 --- a/python/acquire.cc +++ b/python/acquire.cc @@ -217,7 +217,7 @@ static PyObject *PkgAcquireNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) return FetcherObj; } -static const char *doc_PkgAcquire = "Acquire(progress) -> Acquire() object.\n\n" +static char *doc_PkgAcquire = "Acquire(progress) -> Acquire() object.\n\n" "Create a new acquire object. The parameter *progress* can be used to\n" "specify a apt.progress.FetchProgress() object, which will display the\n" "progress of the fetching."; @@ -305,7 +305,7 @@ static PyObject *PkgAcquireFileNew(PyTypeObject *type, PyObject *Args, PyObject } -static const char *doc_PkgAcquireFile = +static char *doc_PkgAcquireFile = "AcquireFile(owner, uri[, md5, size, descr, short_descr, dest_dir," "dest_file]) -> New AcquireFile() object\n\n" "The parameter *owner* refers to an apt_pkg.Acquire() object. You can use\n" diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc index a54b3922..bdea5fae 100644 --- a/python/apt_pkgmodule.cc +++ b/python/apt_pkgmodule.cc @@ -584,8 +584,8 @@ extern "C" void initapt_pkg() CharCharToList(TFRewriteSourceOrder)); // Version.. - PyModule_AddStringConstant(Module,"Version",pkgVersion); - PyModule_AddStringConstant(Module,"LibVersion",pkgLibVersion); + PyModule_AddStringConstant(Module,"Version",(char *)pkgVersion); + PyModule_AddStringConstant(Module,"LibVersion",(char *)pkgLibVersion); PyModule_AddStringConstant(Module,"Date",__DATE__); PyModule_AddStringConstant(Module,"Time",__TIME__); diff --git a/python/cache.cc b/python/cache.cc index 0862cd77..f545a605 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -283,7 +283,7 @@ static PyObject *PkgCacheNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) return CacheObj; } -static const char *doc_PkgCache = "Cache([progress]) -> Cache() object.\n\n" +static char *doc_PkgCache = "Cache([progress]) -> Cache() object.\n\n" "The cache provides access to the packages and other stuff.\n\n" "The optional parameter *progress* can be used to specify an \n" "apt.progress.OpProgress() object (or similar) which displays\n" diff --git a/python/depcache.cc b/python/depcache.cc index 70d5af4e..ef2240ce 100644 --- a/python/depcache.cc +++ b/python/depcache.cc @@ -614,7 +614,7 @@ static PyObject *PkgDepCacheNew(PyTypeObject *type,PyObject *Args,PyObject *kwds return DepCachePyObj; } -static const char *doc_PkgDepCache = "DepCache(cache) -> DepCache() object\n\n" +static char *doc_PkgDepCache = "DepCache(cache) -> DepCache() object\n\n" "A DepCache() holds extra information on the state of the packages.\n\n" "The parameter *cache* refers to an apt_pkg.Cache() object."; PyTypeObject PkgDepCacheType = @@ -893,7 +893,7 @@ static PyObject *PkgActionGroupNew(PyTypeObject *type,PyObject *Args,PyObject *k } -static const char *doc_PkgActionGroup = "ActionGroup(depcache)\n\n" +static char *doc_PkgActionGroup = "ActionGroup(depcache)\n\n" "Create a new ActionGroup() object. The parameter *depcache* refers to an\n" "apt_pkg.DepCache() object.\n\n" "ActionGroups disable certain cleanup actions, so modifying many packages\n" diff --git a/python/tag.cc b/python/tag.cc index 007a6122..bc23e98b 100644 --- a/python/tag.cc +++ b/python/tag.cc @@ -393,7 +393,7 @@ PySequenceMethods TagSecSeqMeth = {0,0,0,0,0,0,0,TagSecContains,0,0}; PyMappingMethods TagSecMapMeth = {TagSecLength,TagSecMap,0}; -static const char *doc_TagSec = "TagSection(text) -> Create a new object.\n\n" +static char *doc_TagSec = "TagSection(text) -> Create a new object.\n\n" "TagSection() objects provide methods to access rfc822-style formatted\n" "header sections, like those in debian/control or Packages files.\n\n" "TagSection() behave like read-only dictionaries and also provide access\n" @@ -467,7 +467,7 @@ static PyGetSetDef TagFileGetSet[] = { {} }; -static const char *doc_TagFile = "TagFile(file) -> TagFile() object. \n\n" +static char *doc_TagFile = "TagFile(file) -> TagFile() object. \n\n" "TagFile() objects provide access to debian control files, which consists\n" "of multiple RFC822-like formatted sections.\n\n" "A file may consists of multiple sections, and you can use Step() to move\n" -- cgit v1.2.3