diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-10 17:20:58 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-10 17:20:58 +0100 |
| commit | 628d7caf9ca6ee819398a4b88c23e42094fe2c10 (patch) | |
| tree | 06d0c31214151eadd35a945dc6e063e2e52dd38d /python/apt_pkgmodule.cc | |
| parent | 1948d5d03887eb81ea7797c0f23049ef6c3895ce (diff) | |
| download | python-apt-628d7caf9ca6ee819398a4b88c23e42094fe2c10.tar.gz | |
fix build against apt in experimental
Diffstat (limited to 'python/apt_pkgmodule.cc')
| -rw-r--r-- | python/apt_pkgmodule.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc index 8532b1e3..acfdf019 100644 --- a/python/apt_pkgmodule.cc +++ b/python/apt_pkgmodule.cc @@ -26,6 +26,7 @@ #include <apt-pkg/pkgsystem.h> #include <apt-pkg/orderlist.h> #include <apt-pkg/aptconfiguration.h> +#include <apt-pkg/fileutl.h> #include <sys/stat.h> #include <libintl.h> @@ -185,11 +186,11 @@ static const char *parse_src_depends_doc = "only contains those dependencies for the architecture set in the\n" "configuration variable APT::Architecture"; static PyObject *RealParseDepends(PyObject *Self,PyObject *Args, - bool ParseArchFlags, string name, + bool ParseArchFlags, std::string name, bool debStyle=false) { - string Package; - string Version; + std::string Package; + std::string Version; unsigned int Op; bool StripMultiArch=true; @@ -408,8 +409,8 @@ static PyObject *GetArchitectures(PyObject *Self,PyObject *Args) return 0; PyObject *List = PyList_New(0); - vector<string> arches = APT::Configuration::getArchitectures(); - vector<string>::const_iterator I; + std::vector<std::string> arches = APT::Configuration::getArchitectures(); + std::vector<std::string>::const_iterator I; for (I = arches.begin(); I != arches.end(); I++) { PyList_Append(List, CppPyString(*I)); |
