[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Hardware check before installing a rpm
- From: "Sateesh" <sahegde cisco com>
- To: "Tres Seaver" <tseaver zope com>, <rpm-list redhat com>
- Cc:
- Subject: RE: Hardware check before installing a rpm
- Date: Wed, 10 Nov 2004 08:28:17 +0530
Thanks Tres,
I tried that in %pre and in the case of condition failure gave a exit 1.
That works fine, but I get the message
"error: %pre(ABC-1.1-b13p1) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping ABC-1.1-b13p1"
Is it possible to suppress this error message and give my own message ??
Regards
Sateesh
-----Original Message-----
From: Tres Seaver [mailto:tseaver@zope.com]
Sent: Wednesday, November 10, 2004 12:59 AM
To: sahegde@cisco.com
Subject: Re: Hardware check before installing a rpm
Sateesh wrote:
> I need to do some checking of hardware before installing and only if
> the checks are correct then only I need install, other wise exit with
> error. Is it possible to check this using %ifXXX or like xxx_canon
> tags? What are the possible value for xxx in these ??
The interesting one in your case is '%pre'. Check out the online
version of Maximum RPM for details.
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]