Bug 106647
Summary: | transactions created with adds and removes dont seem to work | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 2.1 | Reporter: | Adrian Likins <alikins> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED WORKSFORME | QA Contact: | Mike McLean <mikem> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.1 | CC: | msw |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-10-13 19:30:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 106632 |
Description
Adrian Likins
2003-10-09 02:46:48 UTC
Hmmm, you can disable that check if you want to continue trying to avoid an errata for AS2.1. I'd rather fix with an errata however. So what is needed? >so what is needed?
eh? needed for what?
a fix or a workaround is what I'm looking for.
How would I disable the check?
The check is disabled by ignoring this problem: case RPMPROB_OLDPACKAGE: rc = snprintf(buf, nb, _("package %s (which is newer than %s) is already installed"), altNEVR, pkgNEVR); break; Note that there are other consequences of disabling this check, I recommend errata still. what consequences? adding ~rpm.RPMPROB_FILTER_OLDPACKAGE to the ts doesnt seem to help, aka rc = ts.run(transflag, ~rpm.RPMPROB_FILTER_OLDPACKAGE , rpmCallback, cfg.readEntry("storageDir")) Am I adding this at the wrong place, or the wrong flag? The consequences are that you are disabling a sanity check, so all consequences of disabling belong to you/up2date. Hm, I think it's an enable, not a disable, to ignore so negating with twiddle ain't the right thing to do. Checking rpm-4.2.1 ... yes, it's enable to ignore, so take the twiddle off. Assuming rpm-4.0.x is similar. BTW, in rpm-4.1 and later the call is a seperate method. From python/rpmts-py.c: * - ts.setProbFilter(ignoreSet) Set transaction set problem filter. * @param problemSetFilter - control bit(s) to ignore classes of problems, * a logical or of one or more of the following bit(s): * - rpm.RPMPROB_FILTER_IGNOREOS - * - rpm.RPMPROB_FILTER_IGNOREARCH - * - rpm.RPMPROB_FILTER_REPLACEPKG - * - rpm.RPMPROB_FILTER_FORCERELOCATE - * - rpm.RPMPROB_FILTER_REPLACENEWFILES - * - rpm.RPMPROB_FILTER_REPLACEOLDFILES - * - rpm.RPMPROB_FILTER_OLDPACKAGE - * - rpm.RPMPROB_FILTER_DISKSPACE - * @return previous ignoreSet okay, no twiddle seems to work. I could of sworn I tried that though, amongst a dozen other things. Seems to at least get past this hurdle. |