1 --- rpm-5.4.12/rpmio/rpmpython.c.rpmpythontrunc~ 2013-08-09 03:05:39.809947086 +0200
2 +++ rpm-5.4.12/rpmio/rpmpython.c 2013-08-09 03:25:25.097372593 +0200
3 @@ -229,6 +229,8 @@ fprintf(stderr, "==> %s(%p,%s,%p)\n", __
4 if (sys_stdout != NULL && PycStringIO_OutputCheck(sys_stdout)) {
5 PyObject * o = (*PycStringIO->cgetvalue)(sys_stdout);
6 *resultp = (PyString_Check(o) ? PyString_AsString(o) : "");
7 + PyObject_CallMethod(sys_stdout, "seek", "i",0);
8 + PyObject_CallMethod(sys_stdout, "truncate", NULL);