Bug 3395 - update_alternatives RPM macro botches install scripts
Summary: update_alternatives RPM macro botches install scripts
Alias: None
Product: Sisyphus
Classification: Development
Component: libalternatives-devel (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: inger@altlinux.org
QA Contact: qa-sisyphus
Depends on:
Reported: 2003-12-22 03:35 MSK by Mikhail Zabaluev
Modified: 2005-09-04 22:03 MSD (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Zabaluev 2003-12-22 03:35:37 MSK
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 inger@altlinux.org 2004-06-24 13:18:48 MSD
я специально делал это как функцию, были какие-то на это причины.  
у меня конструкция, указанная ниже, работает. 
%triggerpostun -- %name, %name < 1:1.4-alt6.p5