From 9ba0f9995cdbb780897eb836cd08f9d98192b383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20T=C3=A9choueyres?= Date: Thu, 30 Apr 2020 19:07:02 +0200 Subject: [PATCH 1/2] Update 'paradox--package-repo-list' even if the repos hasn't star * helpers/paradox-counter.el: decorrelate update of 'paradox--package-repo-list' from counting stars. --- helpers/paradox-counter.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/helpers/paradox-counter.el b/helpers/paradox-counter.el index 7fc22b3c..5dc34fdf 100644 --- a/helpers/paradox-counter.el +++ b/helpers/paradox-counter.el @@ -102,12 +102,11 @@ Also saves result to `package-star-count'" (paradox-log "%s / %s" (incf i) name) (pcase .fetcher (`"github" - (let ((count (paradox-fetch-star-count .repo))) - (if (numberp count) - (progn - (puthash name count paradox--star-count) - (puthash name .repo paradox--package-repo-list)) - (paradox-log "FAILED: %s / %s" i name)))) + (progn + (let ((count (paradox-fetch-star-count .repo))) + (when (numberp count) + (puthash name count paradox--star-count))) + (puthash name .repo paradox--package-repo-list))) (`"wiki" (puthash name t paradox--wiki-packages))))))))) (paradox-list-to-file)) From be8b9efdae94ed81f3e77bc334d5235b072f8fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20T=C3=A9choueyres?= Date: Tue, 12 May 2020 20:43:13 +0200 Subject: [PATCH 2/2] Remove tabs * helpers/paradox-counter.el: untabify last change. --- helpers/paradox-counter.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers/paradox-counter.el b/helpers/paradox-counter.el index 5dc34fdf..236e750b 100644 --- a/helpers/paradox-counter.el +++ b/helpers/paradox-counter.el @@ -103,10 +103,10 @@ Also saves result to `package-star-count'" (pcase .fetcher (`"github" (progn - (let ((count (paradox-fetch-star-count .repo))) - (when (numberp count) - (puthash name count paradox--star-count))) - (puthash name .repo paradox--package-repo-list))) + (let ((count (paradox-fetch-star-count .repo))) + (when (numberp count) + (puthash name count paradox--star-count))) + (puthash name .repo paradox--package-repo-list))) (`"wiki" (puthash name t paradox--wiki-packages))))))))) (paradox-list-to-file))