I have a package A-1.rpm , which has a set of dependency checks in its
preinstall section, if they are not met the install exits. These checks
cannot be done using standard rpm dependency checks, since I need to
look for the presence of a few PCI devices etc.
A later Package depends on a different set of PCI devices, but it is
still called package A. When a user tries to upgrade from older
version, package A.1 to newer package A-2.rpm , The pre-install section
of package A-2.rpm fails since it cannot detect the newer PCI cards. At
the same time since rpm treats an upgrade as an install+uninstall, the
older package gets removed even though the upgrade fails.
If I could be sure that the user uses the --repackage option, then I
could leave it as it was. But I cannot be sure that user will do so. Is
there a possibility of checking for this in the .spec file of A.2 rpm?
It would also be OK if I can force the rpm engine to treat an upgrade
as a single transaction, not two seperate transactions for an install
and uninstall.
"watzinaneihm" <rajku...@gmail.com> wrote in message
news:1124551520.7...@z14g2000cwz.googlegroups.com...