Skip to content

Instantly share code, notes, and snippets.

@anoduck
Forked from don9z/gist:5945914
Last active August 29, 2015 14:26
Show Gist options
  • Save anoduck/f9c52dad801e5843e354 to your computer and use it in GitHub Desktop.
Save anoduck/f9c52dad801e5843e354 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))
@anoduck
Copy link
Author

anoduck commented Jul 31, 2015

Error

Symbol's variable is void "+if ". 

It was a good try, but got an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment