diff --git a/build-aux/update-NEWS.scm b/build-aux/update-NEWS.scm index e916f3f1e8..c029d2f0da 100644 --- a/build-aux/update-NEWS.scm +++ b/build-aux/update-NEWS.scm @@ -166,16 +166,22 @@ (define (package-file version) (string-append data-directory "/packages-" version ".txt")) + (define (packageversions))) (format (current-error-port) "Updating NEWS for ~a to ~a...~%" previous-version new-version) (let* ((old (call-with-input-file (package-file previous-version) read)) - (new (fold-packages (lambda (p r) - (alist-cons (package-name p) (package-version p) - r)) - '()))) + (all-packages/sorted (sort (fold-packages (lambda (p r) + (cons p r)) + '()) + package