python: backport forceArray changes from rpm5.

This commit is contained in:
Alexander Myltsev 2010-12-31 01:41:27 +03:00 committed by Alexey Tourbin
parent 909e4fd5f2
commit d6701e921f

View File

@ -543,9 +543,23 @@ static PyObject * hdrSubscript(hdrObject * s, PyObject * item) {
case RPMTAG_FILEMD5S:
case RPMTAG_FILELINKTOS:
case RPMTAG_FILEFLAGS:
case RPMTAG_ROOT:
case RPMTAG_FILEUSERNAME:
case RPMTAG_FILEGROUPNAME:
case RPMTAG_REQUIRENAME:
case RPMTAG_REQUIREFLAGS:
case RPMTAG_REQUIREVERSION:
case RPMTAG_PROVIDENAME:
case RPMTAG_PROVIDEFLAGS:
case RPMTAG_PROVIDEVERSION:
case RPMTAG_OBSOLETENAME:
case RPMTAG_OBSOLETEFLAGS:
case RPMTAG_OBSOLETEVERSION:
case RPMTAG_CONFLICTNAME:
case RPMTAG_CONFLICTFLAGS:
case RPMTAG_CONFLICTVERSION:
case RPMTAG_CHANGELOGTIME:
case RPMTAG_FILEVERIFYFLAGS:
forceArray = 1;
break;
case RPMTAG_SUMMARY: