summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-02-04 16:53:51 +0000
committerjbj <devnull@localhost>2002-02-04 16:53:51 +0000
commit696c5d9d67e4bde344b921c94ffad5a8ad075ce8 (patch)
treea697b8b6e4ea2c9bc3e88f017ff1bc7ec852f886 /rpmqv.c
parent81d60b470679acaab73d37f6a2f3f2dc6b3cba60 (diff)
downloadrpm-696c5d9d67e4bde344b921c94ffad5a8ad075ce8.tar.gz
rpm-696c5d9d67e4bde344b921c94ffad5a8ad075ce8.tar.bz2
rpm-696c5d9d67e4bde344b921c94ffad5a8ad075ce8.zip
rollback changes from 4.0.4.
CVS patchset: 5297 CVS date: 2002/02/04 16:53:51
Diffstat (limited to 'rpmqv.c')
-rwxr-xr-xrpmqv.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 4ace5e195..e779dae5f 100755
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -478,7 +478,12 @@ int main(int argc, const char ** argv)
ka->qva_flags |= VERIFY_MD5;
else
#endif
- /*@-ifempty@*/ ;
+#ifdef IAM_RPMEIU
+ if (bigMode & MODES_IE)
+ ia->transFlags |= RPMTRANS_FLAG_NOMD5;
+ else
+#endif
+ {};
/*@switchbreak@*/ break;
#endif /* IAM_RPMQV || IAM_RPMK */
@@ -1036,6 +1041,8 @@ int main(int argc, const char ** argv)
if (!poptPeekArg(optCon)) {
if (ia->rbtid == 0)
argerror(_("no packages given for erase"));
+ia->transFlags |= RPMTRANS_FLAG_NOMD5;
+ia->probFilter |= RPMPROB_FILTER_OLDPACKAGE;
ec += rpmRollback(ts, ia, NULL);
} else {
ec += rpmErase(ts, (const char **)poptGetArgs(optCon),
@@ -1076,6 +1083,8 @@ int main(int argc, const char ** argv)
if (!poptPeekArg(optCon)) {
if (ia->rbtid == 0)
argerror(_("no packages given for install"));
+ia->transFlags |= RPMTRANS_FLAG_NOMD5;
+ia->probFilter |= RPMPROB_FILTER_OLDPACKAGE;
ec += rpmRollback(ts, ia, NULL);
} else {
/*@-compdef@*/ /* FIX: ia->relocations[0].newPath undefined */