-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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
Error
It was a good try, but got an error.