Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to force a rollback on an upgrade failure.

32 views
Skip to first unread message

watzinaneihm

unread,
Aug 20, 2005, 11:25:20 AM8/20/05
to
Hi,
Does anybody know of a way of rolling back a failed upgrade without
user needing to know about it?
http://www.linuxjournal.com/article/7034 describes a way the user can
do a rollback. My question is how a packager can do something similar.

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.

DiskMan

unread,
Aug 22, 2005, 6:26:11 AM8/22/05
to
I don't believe that one is possible... but I could be wrong. Will L G

"watzinaneihm" <rajku...@gmail.com> wrote in message
news:1124551520.7...@z14g2000cwz.googlegroups.com...

0 new messages