Files evaluation of rpm packages

I just used fragment of code which evaluates files of deb packages because process of evaluation is the same.