static PyObject *
spec_get_buildroot(specObject * s, void *closure)
{
- rpmSpec spec = specFromSpec(s);
+ rpmSpec spec = s->spec;
if (spec->buildRoot) {
return Py_BuildValue("s", spec->buildRoot);
}
static PyObject *
spec_get_prep(specObject * s, void *closure)
{
- rpmSpec spec = specFromSpec(s);
+ rpmSpec spec = s->spec;
if (spec->prep) {
return Py_BuildValue("s",getStringBuf(spec->prep));
}
static PyObject *
spec_get_build(specObject * s, void *closure)
{
- rpmSpec spec = specFromSpec(s);
+ rpmSpec spec = s->spec;
if (spec->build) {
return Py_BuildValue("s",getStringBuf(spec->build));
}
static PyObject * spec_get_install(specObject * s, void *closure)
{
- rpmSpec spec = specFromSpec(s);
+ rpmSpec spec = s->spec;
if (spec->install) {
return Py_BuildValue("s",getStringBuf(spec->install));
}
static PyObject * spec_get_clean(specObject * s, void *closure)
{
- rpmSpec spec = specFromSpec(s);
+ rpmSpec spec = s->spec;
if (spec != NULL && spec->clean) {
return Py_BuildValue("s",getStringBuf(spec->clean));
}
static PyObject * spec_get_sources(specObject *s, void *closure)
{
- rpmSpec spec = specFromSpec(s);
+ rpmSpec spec = s->spec;
PyObject *sourceList = PyList_New(0);
struct Source *source;
0, /* tp_is_gc */
};
-rpmSpec specFromSpec(specObject *s)
-{
- return s->spec;
-}
-
PyObject *
spec_Wrap(PyTypeObject *subtype, rpmSpec spec)
{