Yes, I agree the exclude API is not very clean, sorry about that. If you have a better design to propose, I'm all ears. Otherwise, I'll just document better what we have.
[ François-René ÐVB Rideau | Reflection&Cybernethics | http://fare.tunes.org ] Language is froth on the surface of thought. — John McCarthy
On 11 May 2010 04:37, szergling senatorzergling@gmail.com wrote:
Hi list,
Is it intended that :exclude in
~/.config/common-lisp/source-registry.conf
should come before the :tree directive(s)[1]?
To me, the manual seems to specify that the order in which the directives are provided does not matter.
I'm using asdf version "1.720". To set the context, and perhaps as another question, I was originally investigating if it was possible to exclude a specific tree (sure, matching a pattern works and is good enough) or directory, or have some other way to suppress the loading of duplicated systems (usually repo branches).
Yong.
[1] Compare:
With this in the user config file,
(:source-registry (:exclude "asdf-exclude") (:tree "/home/tyc20/lisp/") :ignore-inherited-configuration)
(flatten-source-registry)
==>((#P"/home/tyc20/lisp/imp/sbcl-1.0.29-x86-linux/install/lib/sbcl/" :RECURSE T :EXCLUDE (".bzr" ".cdv" "~.dep" "~.dot" "~.nib" "~.plst" ".git" ".hg" ".pc" ".svn" "CVS" "RCS" "SCCS" "_darcs" "_sgbak" "autom4te.cache" "cover_db" "_build")) (#P"/home/tyc20/lisp/" :RECURSE T :EXCLUDE ("asdf-exclude")))
With this in the config file instead:
(:source-registry (:tree "/home/tyc20/lisp/") (:exclude "asdf-exclude") :ignore-inherited-configuration)
(flatten-source-registry)
==>((#P"/home/tyc20/lisp/imp/sbcl-1.0.29-x86-linux/install/lib/sbcl/" :RECURSE T :EXCLUDE (".bzr" ".cdv" "~.dep" "~.dot" "~.nib" "~.plst" ".git" ".hg" ".pc" ".svn" "CVS" "RCS" "SCCS" "_darcs" "_sgbak" "autom4te.cache" "cover_db" "_build")) (#P"/home/tyc20/lisp/" :RECURSE T :EXCLUDE (".bzr" ".cdv" "~.dep" "~.dot" "~.nib" "~.plst" ".git" ".hg" ".pc" ".svn" "CVS" "RCS" "SCCS" "_darcs" "_sgbak" "autom4te.cache" "cover_db" "_build")))
asdf-devel mailing list asdf-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/asdf-devel