forked from ariadne/pkgconf
Enforce maximum package count correctly for --modversion
Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>master
parent
f7bebba664
commit
1e179963d4
|
@ -1325,7 +1325,7 @@ cleanup3:
|
||||||
/* check if there is a limit to the number of packages allowed to be included, if so and we have hit
|
/* check if there is a limit to the number of packages allowed to be included, if so and we have hit
|
||||||
* the limit, stop adding packages to the queue.
|
* the limit, stop adding packages to the queue.
|
||||||
*/
|
*/
|
||||||
if (maximum_package_count > 0 && pkgq.length > maximum_package_count)
|
if (maximum_package_count > 0 && pkgq.length >= maximum_package_count)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
while (isspace((unsigned char)package[0]))
|
while (isspace((unsigned char)package[0]))
|
||||||
|
|
Loading…
Reference in New Issue