diff --git a/oni-package.el b/oni-package.el index 325798b..c8183d0 100644 --- a/oni-package.el +++ b/oni-package.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190113123701 +;; Version: 20190113124225 ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -52,6 +52,20 @@ (setq package-archive-upload-base "/ssh:slash@ryuslash.org:usr/share/emacs/elpa/") +;;; Temporary fix for `package-maint-add-news-item', until I get my +;;; Copyright assignment back in order. +(defun package-maint-add-news-item (title description archive-url) + "Add a news item to the webpages associated with the package archive. +TITLE is the title of the news item. +DESCRIPTION is the text of the news item." + (interactive "sTitle: \nsText: \nsArchive URL: ") + (package--update-file "elpa.rss" + "" + (package--make-rss-entry title description archive-url)) + (package--update-file "news.html" + "New entries go here" + (package--make-html-entry title description))) + ;;;###autoload (with-eval-after-load 'package (require 'oni-package)) ;;;###autoload (with-eval-after-load 'package-x (require 'oni-package))