Nick Upson
asked on
writing rpm spec handle conditional actions
I'm trying to write an rpm spec file to handle upgrades of a package, currently rpm --erase followed by rpm --install is necessary whereas I want to just do rpm --upgrade.
This is on fedora core 8 and it's a customer package I'm involved with.
The problem I'm having is that there is a database involved where I need to run, possibly several, upgrade scripts. so I need logic that goes something like the code snippet attached
This is on fedora core 8 and it's a customer package I'm involved with.
The problem I'm having is that there is a database involved where I need to run, possibly several, upgrade scripts. so I need logic that goes something like the code snippet attached
say current version is 2.3.0 and the new one is 2.3.6, ?how to do this within the rpm spec file
apply, in order, with error checking, each update script that exists between 2.3.0 and 2.3.6
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.