Red Hat Bugzilla – Bug 480540
Transaction errors when updating selinux-policy
Last modified: 2013-01-09 22:26:09 EST
Updating : selinux-policy 232/508
Traceback (most recent call last):
File "/usr/bin/sepolgen-ifgen", line 32, in <module>
import sepolgen.refparser as refparser
ImportError: No module named sepolgen.refparser
Perhaps a missing Requires or Requires(post) ?
Strange they should be in the same package
# rpm -qf /usr/lib64/python2.6/site-packages/sepolgen/refparser.py
# rpm -qf /usr/bin/sepolgen-ifgen
Is this during an install?
I do believe this was an upgrade. That is indeed quite strange.
Well those files used to be in policycoreutils and are moving to policycoreutils-python, so we can eliminate python from the minimal install.
If those files are in the mist of a transaction I wonder if this could happen.
The code is supposed to check for the existance of /usr/bin/sepolgen-ifgen
[ -x /usr/bin/sepolgen-ifgen ] && /usr/bin/sepolgen-ifgen
But this file should not be there if the other python code is not.
That is a weird one. I'm going to drop if off of the Alpha tracker, but leave the bug open. Will try to reproduce at some point.
*** This bug has been marked as a duplicate of bug 480968 ***