Removed a debug method, it should not be released.

bzr-import-20160707
Fabio Tranchitella 19 years ago
parent 76b3a8cf3c
commit b1afe1ee3d

@ -325,27 +325,6 @@ static PyObject *dpkgpackages_add_binary(dpkgpackages *self, PyObject *args) {
return Py_BuildValue("i", 1); return Py_BuildValue("i", 1);
} }
static PyObject *dpkgpackages_print_providers(dpkgpackages *self, PyObject *args) {
char *pkg_name;
(void)self; /* unused */
if (!PyArg_ParseTuple(args, "s", &pkg_name)) return NULL;
virtualpkg *list;
virtualpkg **where;
list = lookup_virtualpkgtbl(self->pkgs->virtualpkgs, pkg_name);
where = &list;
printf("Virtual package: %s\n", pkg_name);
while (*where != NULL) {
printf(" + provided by: %s\n", (*where)->value.pkg->pkg->package);
where = &(*where)->next;
}
printf("\n");
return Py_BuildValue("i", 1);
}
static PyObject *dpkgpackages_getattr(dpkgpackages *self, char *name) { static PyObject *dpkgpackages_getattr(dpkgpackages *self, char *name) {
static struct PyMethodDef dpkgsources_methods[] = { static struct PyMethodDef dpkgsources_methods[] = {
{ "is_present", (binaryfunc) dpkgpackages_ispresent, { "is_present", (binaryfunc) dpkgpackages_ispresent,
@ -372,8 +351,6 @@ static PyObject *dpkgpackages_getattr(dpkgpackages *self, char *name) {
{ "remove_binary", (binaryfunc) dpkgpackages_remove_binary, { "remove_binary", (binaryfunc) dpkgpackages_remove_binary,
METH_VARARGS, NULL }, METH_VARARGS, NULL },
{ "add_binary", (binaryfunc) dpkgpackages_add_binary, { "add_binary", (binaryfunc) dpkgpackages_add_binary,
METH_VARARGS, NULL },
{ "print_providers", (binaryfunc) dpkgpackages_print_providers,
METH_VARARGS, NULL }, METH_VARARGS, NULL },
{ NULL, NULL, 0, NULL } { NULL, NULL, 0, NULL }

Loading…
Cancel
Save