diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-15 16:55:07 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-15 16:55:07 +0100 |
| commit | 92cc00805d175dc013d544bcee603e8a0c031c2b (patch) | |
| tree | e33d5d7e7ae3910b67b3193401bf331aa5e80b07 /python/apt_pkgmodule.cc | |
| parent | a0c9ec82095d2e09715e5dc953119ec4fa7b4c2e (diff) | |
| parent | fcd268692450231c98bfb6ac2e573ce466e014c7 (diff) | |
| download | python-apt-92cc00805d175dc013d544bcee603e8a0c031c2b.tar.gz | |
merged from lp:~mvo/apt/mvo
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)); |
