From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050926 Fedora/1.0.7-1.1.fc4.swupdate Firefox/1.0.7 Description of problem: Directories not created correctly at install of this package in /var. Version-Release number of selected component (if applicable): tinyerp-server-3.1.1-1.fc4 How reproducible: Always Steps to Reproduce: 1. Install tinyerp-server-3.1.1-1.fc4 2. 3. Actual Results: When installing this on a clean system, in the preinstall script there is the line: chown -R tinyerp:tinyerp /var/log/tinyerp /var/spool/tinyerp This fails with a complaining error since these directories don't exist. Expected Results: Installation without error messages. Additional info: Before the chown command, the line: mkdir -p /var/log/tinyerp /var/spool/tinyerp needs to be inserted inthe preinstall script. Once these directories already exist, installation of the package completes without error or other incident.
The dirs are included in the tinyerp-server package, but the chown command should be executed in %post script instead of %pre. In the time of executing the %pre script they don't exist yet. Fixed in tinyerp-server-3.1.1-2.
The chown command is not even required, ownership is set via %attr in the spec file. I have released tinyerp-3.1.1-3.
I have fixed dependencies for %pre and %postun scripts. Will be in tinyerp-3.1.1-5.