Re: --force in addInstall
Paul Nasrat <[email protected]> Sun, 6 Feb 2005 12:53:36 -0500
| Newsgroups | gmane.linux.redhat.rpm.python |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Feb 06, 2005 at 11:22:43PM +0800, Tsai Li Ming wrote:
> Dear all,
>
> How do I do a force install(rpm --force) via addInstall? Is there a ts
> flag that I can set?
Yes you do this by setting the problem filter on the transaction set.
Off the top of my head IIRC --force is:
ts.setProbFilter(rpm.RPMPROB_FILTER_REPLACEPKG |
rpm.RPMPROB_FILTER_REPLACEOLDFILES |
rpm.RPMPROB_FILTER_REPLACENEWFILES)
Paul