diff --git a/qpkg/prereq.c b/qpkg/prereq.c index 69e3b19..22be23f 100644 --- a/qpkg/prereq.c +++ b/qpkg/prereq.c @@ -227,13 +227,6 @@ struct pkg **prereq(struct pkg *pkg) .next = NULL }; -#if 0 - /* make sure we don't return NULL if all dependencies are met */ - if (!installs) { - installs = alloc_type(struct pkg *); - install_max = 1; - } -#endif /* @@@ make list of pre-existing conflicts */ resolve(&deps, NULL, NULL); free(installs); diff --git a/qpkg/test/prereq b/qpkg/test/prereq index 64e6320..4530cc3 100755 --- a/qpkg/test/prereq +++ b/qpkg/test/prereq @@ -3,6 +3,17 @@ ############################################################################### +qpkg "no prereq for new package" prereq foo <