summaryrefslogtreecommitdiffstats
path: root/rpmmodule
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-16 23:09:43 +0000
committerMatt Wilson <msw@redhat.com>1999-08-16 23:09:43 +0000
commite9db63dfa0ae90131bee831cd0da4f77ed5c3ea3 (patch)
tree9a121038f866984e2cbd85a697a81437b16dbc78 /rpmmodule
parent70c9f3200dff5096602c7a4b584a86cdc26208ad (diff)
downloadanaconda-e9db63dfa0ae90131bee831cd0da4f77ed5c3ea3.tar.gz
anaconda-e9db63dfa0ae90131bee831cd0da4f77ed5c3ea3.tar.xz
anaconda-e9db63dfa0ae90131bee831cd0da4f77ed5c3ea3.zip
fixed
Diffstat (limited to 'rpmmodule')
-rw-r--r--rpmmodule/rpmmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c
index 4604c74ec..11c9b2ad9 100644
--- a/rpmmodule/rpmmodule.c
+++ b/rpmmodule/rpmmodule.c
@@ -893,8 +893,8 @@ static PyObject * rpmtransAdd(rpmtransObject * s, PyObject * args) {
} else if (how && !strcmp(how, "u"))
isUpgrade = 1;
- if (how && strcmp(how, "a"))
- rpmtransAvailablePackage(s->ts, h, key);
+ if (how && !strcmp(how, "a"))
+ rpmtransAvailablePackage(s->ts, h->h, key);
else
rpmtransAddPackage(s->ts, h->h, NULL, key, isUpgrade, NULL);