From 5483ca175e5aa2b7de55cb0cea69546d2ccd2cd5 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 13 Apr 2005 12:19:29 +0000 Subject: * build-depends added to PkgSrcRecords, example for build-depends added --- python/pkgsrcrecords.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'python/pkgsrcrecords.cc') diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc index f9a420b9..fb66284a 100644 --- a/python/pkgsrcrecords.cc +++ b/python/pkgsrcrecords.cc @@ -80,6 +80,22 @@ static PyObject *PkgSrcRecordsAttr(PyObject *Self,char *Name) return List; // todo } else if (strcmp("Files",Name) == 0) return 0; // todo + else if (strcmp("BuildDepends",Name) == 0) { + PyObject *List = PyList_New(0); + + vector bd; + if(!Struct.Last->BuildDepends(bd, false /* arch-only*/)) + return NULL; // error + + PyObject *v; + for(unsigned int i=0;i