Skip to content

Commit

Permalink
borg-read-package: For more forges
Browse files Browse the repository at this point in the history
Use an exclude list instead of an include list.  That way, I don't
have to remember to update this list when I add support for a new
forge in epkg.
  • Loading branch information
tarsius committed Nov 1, 2023
1 parent 64f9ca3 commit d8aecb0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions borg.el
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,11 @@ to variable `borg-rewrite-urls-alist' (which see)."
(pkg (epkg name))
(url (and pkg
(with-no-warnings
(if (or (epkg-git-package-p pkg)
(epkg-github-package-p pkg)
(epkg-orphaned-package-p pkg)
(epkg-gitlab-package-p pkg))
(if (and (epkg-git-package--eieio-childp pkg)
(not (or (epkg-subtree-package-p pkg)
(epkg-nongnu-elpa-package-p pkg)
(epkg-gnu-elpa-package-p pkg)
(epkg-wiki-package-p pkg))))
(eieio-oref pkg 'url)
(eieio-oref pkg 'mirror-url))))))
(when url
Expand Down

0 comments on commit d8aecb0

Please sign in to comment.