reqprov.c: Requires(post) should not optimize out bare Requires
Both "Requires(post): foo" and "Requires: foo" should be kept. The first dependency is only for %post-script: after the package is installed, rpm allows to remove "foo" (though apt-get does not). This is only a quick fix, perhaps the code should be rewritten. For instance, if with have both "Requires(pre): foo" and "Requires(post): foo", those can be folded into single "Requires(pre,post): foo".
This commit is contained in:
parent
b81db19611
commit
f5c325744d
@ -174,11 +174,11 @@ static dep_compare_t compare_deps (rpmTag tag,
|
||||
}
|
||||
|
||||
/* 7e. Aflags contains Bflags? */
|
||||
else if ((Areq & Breq) == Breq)
|
||||
else if (Breq && (Areq & Breq) == Breq)
|
||||
rc = DEP_ST;
|
||||
|
||||
/* 7f. Bflags contains Aflags? */
|
||||
else if ((Areq & Breq) == Areq)
|
||||
else if (Areq && (Areq & Breq) == Areq)
|
||||
rc = DEP_WK;
|
||||
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user