SHA256
3
0
forked from pool/rpm

Accepting request 339480 from home:AndreasSchwab:f

- %install_info_delete: only delete if package is removed

OBS-URL: https://build.opensuse.org/request/show/339480
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=362
This commit is contained in:
Stephan Kulow 2015-10-24 10:42:35 +00:00 committed by Git OBS Bridge
parent 48bb2cd8e9
commit beecad481d
2 changed files with 10 additions and 4 deletions

View File

@ -237,6 +237,7 @@
%run_ldconfig /sbin/ldconfig
# for %post
%install_info(:-:) \
ALL_ARGS=(%{**}) \
NUM_ARGS=${#ALL_ARGS[@]} \
@ -246,12 +247,12 @@
fi \
fi ;
# for %preun
%install_info_delete(:-:) \
ALL_ARGS=(%{**}) \
NUM_ARGS=${#ALL_ARGS[@]} \
test -n "$FIRST_ARG" || FIRST_ARG=$1 \
if test -x /sbin/install-info ; then \
if ! test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then \
/sbin/install-info --quiet --delete "${ALL_ARGS[@]}" \
if [ "$FIRST_ARG" = 0 ]; then \
/sbin/install-info --quiet --delete %{**} \
fi ; \
fi ;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Oct 17 10:34:53 UTC 2015 - schwab@linux-m68k.org
- %install_info_delete: only delete if package is removed
-------------------------------------------------------------------
Thu Oct 1 14:35:04 UTC 2015 - fvogt@suse.com