summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-10-01 15:28:40 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-10-01 15:28:40 +0300
commit0334b82280de0f42dcca867397fb9e6bb72c3b30 (patch)
treeb59b1249df8a9cd5780a40a47203d97b02c3359a
parentd081f19945d2feb3f74e9460e59f74fcc6ada438 (diff)
downloadlibrpm-tizen-0334b82280de0f42dcca867397fb9e6bb72c3b30.tar.gz
librpm-tizen-0334b82280de0f42dcca867397fb9e6bb72c3b30.tar.bz2
librpm-tizen-0334b82280de0f42dcca867397fb9e6bb72c3b30.zip
Kill spec.buildRoot from python
- We /could/ of course add a getter for this but ... sorry folks, what rpm happens to use as buildroot internally isn't anybody elses business.
-rw-r--r--python/spec-py.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/python/spec-py.c b/python/spec-py.c
index 015945123..7eafc4daa 100644
--- a/python/spec-py.c
+++ b/python/spec-py.c
@@ -119,16 +119,6 @@ spec_dealloc(specObject * s)
Py_TYPE(s)->tp_free((PyObject *)s);
}
-static PyObject *
-spec_get_buildroot(specObject * s, void *closure)
-{
- rpmSpec spec = s->spec;
- if (spec->buildRoot) {
- return Py_BuildValue("s", spec->buildRoot);
- }
- Py_RETURN_NONE;
-}
-
static PyObject * getSection(rpmSpec spec, int section)
{
const char *sect = rpmSpecGetSection(spec, section);
@@ -203,7 +193,6 @@ static PyGetSetDef spec_getseters[] = {
{"build", (getter) spec_get_build, NULL, NULL },
{"install", (getter) spec_get_install, NULL, NULL },
{"clean", (getter) spec_get_clean, NULL, NULL },
- {"buildRoot", (getter) spec_get_buildroot, NULL, NULL },
{"packages", (getter) spec_get_packages, NULL, NULL },
{NULL} /* Sentinel */
};