rpmRangesOverlap: when both EVRs are non-existent or empty, overlap; otherwise use normal rpmEVRcmp algorithm
This commit is contained in:
parent
67149f7995
commit
4b6e05af60
@ -503,8 +503,11 @@ int rpmRangesOverlap(const char * AName, const char * AEVR, int AFlags,
|
||||
goto exit;
|
||||
}
|
||||
|
||||
/* If either EVR is non-existent or empty, always overlap. */
|
||||
if (!(AEVR && *AEVR && BEVR && *BEVR)) {
|
||||
if (!AEVR) AEVR = "";
|
||||
if (!BEVR) BEVR = "";
|
||||
|
||||
/* Optimize: when both EVRs are non-existent or empty, always overlap. */
|
||||
if (!(*AEVR || *BEVR)) {
|
||||
result = 1;
|
||||
goto exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user