From 1ab6ecd64f29562fb2186ef46f97dc36e824d4cc Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 21 Jan 2020 23:55:36 +0000 Subject: [PATCH] Use the line numbers to make the package deduplication more stable Previously this would just compare on the version if the name was the same, but there are package definitions that share the name and version (itstool is one example). To try and make this more stable, to avoid weird errors, and unstable comparisons between revisions, use the line number when deduplicating packages. --- guix-data-service/jobs/load-new-guix-revision.scm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/guix-data-service/jobs/load-new-guix-revision.scm b/guix-data-service/jobs/load-new-guix-revision.scm index e685615..86911df 100644 --- a/guix-data-service/jobs/load-new-guix-revision.scm +++ b/guix-data-service/jobs/load-new-guix-revision.scm @@ -499,8 +499,18 @@ WHERE job_id = $1" (let ((a-name (inferior-package-name a)) (b-name (inferior-package-name b))) (if (string=? a-name b-name) - (string