Mailinglist Archive: opensuse-packaging (235 mails)

< Previous Next >
Re: [opensuse-packaging] php5-pear-xinc problem
Hello!

I have additionally defined the following line at the spec's top:

%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}



And I'm using the bleow lines for post/postun sections:

%post
if [ "$1" = "1" ]; then
# install (rpm -i)
%{__pear} install --nodeps --soft --force --register-only
%{pear_xmldir}/%{pear_name}.xml ||:
fi
if [ "$1" = "2" ]; then
# update (rpm -U)
%{__pear} upgrade --offline --register-only %{pear_xmldir}/%{pear_name}.xml
||:
fi

%postun
if [ "$1" -eq "0" ] ; then
# uninstall (rpm -e)
%{__pear} uninstall --nodeps --ignore-errors --register-only %{pear_name}
>/dev/null ||:
fi

Note, that the lines end with ||: , which makes the codes fail silently.

Best regards,
Johannes


Am 02.03.12 01:06, schrieb Marguerite Su:
Hi, Johannes Weberhofer,

Your fix in php5-pear-channel-xinc ensures php5-pear installed before
channel (Requires: php5-pear) . thus fix php5-pear-xinc channel error.

But %post scriptlet still fails:

pear install --nodeps --soft --force --register-only %{xmldir}/%{pear_name}.xml

can you take care of this?

Here:https://build.opensuse.org/package/show?package=php5-pear-xinc&project=home%3AMargueriteSu%3Abranches%3Aserver%3Aphp%3Aapplications

--
Johannes Weberhofer
Weberhofer GmbH, Austria, Vienna
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups