fix Requires(post,preun) problem

This commit is contained in:
Дмитрий Левин 2003-07-09 17:21:28 +00:00
parent dc16524f2d
commit a6b602bd31

View File

@ -1910,8 +1910,7 @@ int rpmdepOrder(rpmTransactionSet ts)
/* Skip if not %pre/%post requires or legacy prereq. */
if (isErasePreReq(p->requireFlags[j]) ||
!( isInstallPreReq(p->requireFlags[j]) ||
if (!( isInstallPreReq(p->requireFlags[j]) ||
isLegacyPreReq(p->requireFlags[j]) ))
continue;
@ -1925,7 +1924,7 @@ int rpmdepOrder(rpmTransactionSet ts)
if (p->requireFlags == NULL) continue; /* XXX can't happen */
/* Skip if %pre/%post requires or legacy prereq. */
/* Skip if %pre/%post/%preun/%postun requires or legacy prereq. */
if (isErasePreReq(p->requireFlags[j]) ||
( isInstallPreReq(p->requireFlags[j]) ||