27 May
2009
27 May
'09
09:05
Hi, I tried to define a "var" in %pre, hoping that this "var" is then known in %post. Example: %pre if [ ${1:-0} -gt 1 ]; then # get version of previuos installed package pre_version=`rpm -q --qf "%{VERSION}" %{name}` fi %post if [ ${1:-0} -gt 1 ]; then if [ -n $pre_version ]; then if [ "$pre_version" = "%{version}" ]; then do stuff fi fi fi but "$pre_version" is not known in %post. I also tried "export pre_version=`.....` with no success. Any Idea ? Kind Regards Chris -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org