rpm.macros broken
Fryderyk Dziarmagowski
freetz at gmx.net
Thu May 19 10:25:22 CEST 2005
On Thu, 19 May 2005 11:12:03 +0300
Elan Ruusamäe <glen at delfi.ee> wrote:
> > > > after rev. 1.210 %update_desktop_database_postun fails on
> > > > uninstalling with syntax error: `then' unexpected.
> > > >
> > > > rev. 1.210 is a c&p from AC-branch:
> > > >
> > > > rev.1.158.4.36
> > > > - change -%update_desktop_database_* macros so it would be
> > > > single line in shell context
> > > >
> > > > very nice... could someone take a look?
> > > >
> > > > :]
> > >
> > > show the output of expanded macros!
> > > specifics!
> >
> > 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 \
umask 022; \
/usr/bin/update-desktop-database; \
fi \
}
and old beheviour was:
postinstall scriptlet (using /bin/sh):
umask 022;
/usr/bin/update-desktop-database;
postuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ]; then
umask 022;
/usr/bin/update-desktop-database;
fi
> tested here and worked!
really? it's propably hard to test it without /usr/bin/update-desktop-
database (?)
> > please revert or fix your improvements.
> i can't if you refuse to give more info.
> and what package contains /usr/bin/update-desktop-database?
>
> $ poldek -u @/usr/bin/update-desktop-database
> error: virtual '/usr/bin/update-desktop-database' not found
[fritz at smeagol RPMS]$ rpm -qf /usr/bin/update-desktop-database
desktop-file-utils-0.10-1
--
Fryderyk Dziarmagowski
More information about the pld-devel-en
mailing list