Hello,
cobbler trac issue #579 is now resolved, but as I've noted there,
cobbler does mess up the ctime timestamps of a mirrored repo during
the reposync action, which could mislead "createrepo --update --C".
To get this resolved, too, I've created the attached patch. The
patch limits the ctime changing actions to the bare minimum.
This was confirmed by the logging I've added for debugging #579.
But there is a futher bug, and as I'm by no means a real python
programmer, I'm currently unable to tell if there's something
wrong with my patch, or if it's a bug in the logging support.
The problem: The commands are executed as written, but only the parts
of the commands after the pipe symbol are logged; i. e. for cmd1 only
"xargs -0 chown root:apache" is logged, and for cmd2 only
"xargs -0 chmod a+rX". I've done a cursory search in the standard
Python docs for any special meaning of the pipe symbol, but found
nothing.
So I'm asking here for help, to resolve this strange logging problem.
Maybe this is an issue with cobbler's use of python's logging?
Robert
PS.: The patch changes next to nothing with regard to what other
packages are required for cobbler; the findutils package is
required by the initscripts and man packages, and restorecon
comes with policycoreutils which are required for SELinux.