Commit dbce0f8cef5d20b01b94907d191e617d9842496d

Thomas de Grivel 2017-02-27T13:51:12

Only print repo packages if bound.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/repo.lisp b/repo.lisp
index c1efd97..5f7de70 100644
--- a/repo.lisp
+++ b/repo.lisp
@@ -194,7 +194,9 @@
 (defmethod print-object ((obj repo) stream)
   (print-unreadable-object (obj stream :type t :identity t)
     (with-slots (dir name uri local-dir packages) obj
-      (format stream "~A/~A ~S ~S ~S" dir name uri local-dir packages))))
+      (format stream "~A/~A ~S ~S ~S" dir name uri local-dir
+              (when (slot-boundp obj 'packages)
+                packages)))))
 
 (defmethod initialize-instance :after ((repo repo) &rest initargs)
   (declare (ignore initargs))