Skip to content

Instantly share code, notes, and snippets.

@don9z
Created July 8, 2013 02:55
Show Gist options
  • Save don9z/5945914 to your computer and use it in GitHub Desktop.
Save don9z/5945914 to your computer and use it in GitHub Desktop.
Workaround for this error: ad-Advice-package--add-to-archive-contents: Symbol's function definition is void: package-desc-vers
;; diff --git a/melpa-autoloads.el b/melpa-autoloads.el
(defadvice package--add-to-archive-contents (around package-filter-add-to-archive-contents (package archive) activate compile) "\
Add filtering of available packages using `package-filter-function',
-if non-nil." (when (and package-filter-function (funcall package-filter-function (car package) (package-desc-vers (cdr package)) archive)) ad-do-it))
+if non-nil." (when (and package-filter-function (funcall package-filter-function (car package) (package--ac-desc-version (cdr package)) archive)) ad-do-it))
;; diff --git a/melpa.el b/melpa.el
@@ -84,7 +84,7 @@ if non-nil."
(when (and package-filter-function
(funcall package-filter-function
(car package)
- (package-desc-vers (cdr package))
+ (package--ac-desc-version (cdr package))
archive))
ad-do-it))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment