[Rpm-ecosystem] lua, unprivileged rpm, and rpm-ostree
Miroslav Suchý
msuchy at redhat.com
Fri Aug 12 16:16:37 UTC 2016
Dne 12.8.2016 v 14:19 Colin Walters napsal(a):
> Your two paragraphs here conflict - if you're doing a new install, there
> is nothing to upgrade from, hence we don't need to execute %pretrans.
> If you're doing an upgrade, you have bash already.
There are two scenarios, but only one RPM. Obviously you cannot have two
RPM - one for upgrades and one for clean install.
And such script:
%pretrans
if [ -e /some/broken/file ]; then
....
fi
will obviously fail when you are installing to clean chroot (or bare metal).
And as Neal stated, the %pretrans is executed always. No matter if it is
upgrade or clean install. So you need to do the check if it is upgrade
inside of that scriptlet.
--
Miroslav Suchy, RHCA
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
More information about the Rpm-ecosystem
mailing list