       (setq installed-count 0)
       (dolist (pkg-name noinst-pkg-names)
         (setq installed-count (1+ installed-count))
-        (let* ((pkg (object-assoc pkg-name :name configuration-layer-packages))
+        (let* ((pkg (object-assoc pkg-name :name configuration-layer--packages))
                (layer (when pkg (oref pkg :owner)))
                (location (when pkg (oref pkg :location))))
           (spacemacs-buffer/replace-last-line

             :type boolean
             :documentation "If non-nil this package is ignored.")))

(defvar configuration-layer-layers '()
  "A non-sorted list of `cfgl-layer' objects.")

(defvar configuration-layer-packages '()
  "An alphabetically sorted list of `cfgl-package' objects.")

(defvar configuration-layer-error-count nil
  "Non nil indicates the number of errors occurred during the

  (interactive)
  (let* ((dependencies (configuration-layer//get-all-packages-dependencies))
         (implicit-packages (configuration-layer//get-implicit-packages
                             configuration-layer--used-distant-packages))
         (orphans (configuration-layer//filter-used-themes
                   (configuration-layer//get-orphan-packages
                    configuration-layer--used-distant-packages
                    implicit-packages
                    dependencies)))
         (orphans-count (length orphans)))
    ;; (message "dependencies: %s" dependencies)
    ;; (message "implicit: %s" implicit-packages)
