            ((and (listp location) (eq 'recipe (car location)))
             (configuration-layer//install-from-recipe pkg)
             (oset pkg :lazy-install nil))
-           (t (spacemacs-buffer/warning "Cannot install package %S."
+           (t (configuration-layer//warning "Cannot install package %S."
                                         pkg-name)))
         ('error
          (configuration-layer//increment-error-count)

            (push new-layer configuration-layer--layers)
            (configuration-layer//set-layer-variables new-layer)
            (configuration-layer//load-layer-files new-layer '("layers.el")))
        (spacemacs-buffer/warning "Unknown layer %s declared in dotfile."
                                  layer-name)))))

(defun configuration-layer/remove-layers (layer-names)


(defun configuration-layer//get-package-version (pkg-name)
  "Return the version list for package with name PKG-NAME."
  (let ((version-string (configuration-layer//get-package-version-string
                         pkg-name)))
    (unless (string-empty-p version-string)
      (version-to-list version-string))))

