Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix logic: complain about adding more jobs *after* the solver has run, rather than before.
Matthew Seaman committed 13 years ago
commit adc0dbaa102d0ec2976310b73ba723a9a949385f
parent ea8fa16
1 file changed +1 -1
modified libpkg/pkg_jobs.c
@@ -104,7 +104,7 @@ pkg_jobs_add(struct pkg_jobs *j, match_t match, char **argv, int argc)
{
	struct job_pattern *jp;

-
	if (!j->solved) {
+
	if (j->solved) {
		pkg_emit_error("The job has already been solved. "
		    "Impossible to append new elements");
		return (EPKG_FATAL);