Fix duplicate addition by "ros template add"

This commit is contained in:
eshamster 2018-02-10 03:38:00 +00:00
parent 445d335392
commit 84e7192115

View file

@ -203,7 +203,7 @@
(info (template-read template-name)))
(uiop:copy-file path-copy-from
(ensure-directories-exist (template-file-path template-name file-name)))
(unless (find file-name (getf info :files) :key (lambda (x) (getf x :name)))
(unless (find file-name (getf info :files) :key (lambda (x) (getf x :name)) :test 'equal)
(push (list :name file-name :method "copy") (getf info :files)))
(template-write template-name info)))