Commit 72596816 authored by simonmar's avatar simonmar
Browse files

[project @ 2004-11-30 15:31:56 by simonmar]

Allow -ignore-package P when P doesn't exist (thanks to George Russell
for the report).
parent 837bcf43
......@@ -267,8 +267,10 @@ mkPackageState dflags pkg_db = do
(ps,_) -> multiplePackagesErr str ps
procflags pkgs expl (IgnorePackage str : flags) = do
case partition (matches str) pkgs of
([],_) -> missingPackageErr str
(ps,qs) -> procflags qs expl flags
-- missing package is not an error for -ignore-package,
-- because a common usage is to -ignore-package P as
-- a preventative measure just in case P exists.
-- A package named on the command line can either include the
-- version, or just the name if it is unambiguous.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment