Commit 7e1827ae9b40b164286612f38ccfa9d0cd50cceb

Thomas de Grivel 2017-04-05T13:47:03

Accept symbols for repo specifier.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/repo.lisp b/repo.lisp
index 9d130d2..88ab563 100644
--- a/repo.lisp
+++ b/repo.lisp
@@ -373,6 +373,8 @@
 
 (defun repo (uri)
   "Factory function for repository classes using *REPO-URI-HANDLERS*."
+  (when (symbolp uri)
+    (setq uri (symbol-name uri)))
   (destructuring-bind (uri &rest packages) (string-split " " uri)
     (or (find-repo uri)
 	(when (stringp uri)