rpm.macros broken

Jakub Bogusz qboosh at pld-linux.org
Thu May 19 10:57:07 CEST 2005


On Thu, May 19, 2005 at 10:25:22AM +0200, Fryderyk Dziarmagowski wrote:
> On Thu, 19 May 2005 11:12:03 +0300
> Elan Ruusamäe <glen at delfi.ee> wrote:
[...]
> > > just uninstall any package containing this macro, builded with rpm
> > > after your changes and you can see whats going on.
> > show me the exact package!
> > rpm -qp package.rpm --scripts output
> 
> [fritz at smeagol RPMS]$ rpm -qp glabels-2.0.2-3.i686.rpm --scripts output
> postinstall scriptlet (using /bin/sh):
> 
>         /usr/bin/scrollkeeper-update -q;
> 
> {\
>         umask 022; \
>         /usr/bin/update-desktop-database; \
> }
> postuninstall scriptlet (using /bin/sh):
> 
> if [ $1 = 0 ]; then
>         /usr/bin/scrollkeeper-update -q;
> fi
> 
> {\
  ^^
> if [ $1 = 0 ]; then \
  ^^

This is syntax error - no whitespace between '{' and "if".

glen, how expanded macros should look like?
If '{' and '\' are supposed to appear here, there should be space before
'\'.
If they look differently on your system, it's maybe because of /bin/sh
not being ksh?


-- 
Jakub Bogusz    http://qboosh.cs.net.pl/



More information about the pld-devel-en mailing list