From 38888aea6b398fb5a44af77314c03900cf64d43d Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 16 Mar 2019 19:58:31 +0000 Subject: Fix some duplication on the compare page For the new and removed package sections. --- guix-data-service/comparison.scm | 18 ++++++++++-------- guix-data-service/web/view/html.scm | 4 ++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/guix-data-service/comparison.scm b/guix-data-service/comparison.scm index 8688f84..132def8 100644 --- a/guix-data-service/comparison.scm +++ b/guix-data-service/comparison.scm @@ -127,17 +127,19 @@ ORDER BY base_packages.name DESC, base_packages.version, target_packages.name, t (define (package-data-vhashes->new-packages base-packages-vhash target-packages-vhash) (vlist->list - (vlist-filter (match-lambda - ((name . details) - (not (vhash-assoc name base-packages-vhash)))) - target-packages-vhash))) + (package-data-vhash->package-name-and-version-vhash + (vlist-filter (match-lambda + ((name . details) + (not (vhash-assoc name base-packages-vhash)))) + target-packages-vhash)))) (define (package-data-vhashes->removed-packages base-packages-vhash target-packages-vhash) (vlist->list - (vlist-filter (match-lambda - ((name . details) - (not (vhash-assoc name target-packages-vhash)))) - base-packages-vhash))) + (package-data-vhash->package-name-and-version-vhash + (vlist-filter (match-lambda + ((name . details) + (not (vhash-assoc name target-packages-vhash)))) + base-packages-vhash)))) (define (package-data-vhash->package-versions-vhash package-data-vhash) (define (system-and-target