Bug 3395 - update_alternatives RPM macro botches install scripts
: update_alternatives RPM macro botches install scripts
Status: CLOSED WONTFIX
: Sisyphus
(All bugs in Sisyphus/libalternatives-devel)
: unstable
: all Linux
: P2 minor
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2003-12-22 03:35 by
Modified: 2005-09-04 22:03 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-12-22 03:35:37
In /etc/rpm/macros.d/alternatives, there is a macro:

%update_alternatives() [ -x /usr/sbin/alternatives-update ] &&
/usr/sbin/alternatives-update %* ||: %nil

Using this macro in package scripts (in my case, %triggerun)
results in an 'unexpected EOF' script error during package installation.

A manual expansion of the macro, without the trailing %nil, is workable.
------- Comment #1 From 2004-06-24 13:18:48 -------
я специально делал это как функцию, были какие-то на это причины.  
у меня конструкция, указанная ниже, работает. 

%triggerpostun -- %name, %name < 1:1.4-alt6.p5 
%update_alternatives