about summary refs log tree commit diff
path: root/maintainers/scripts/update.nix
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2022-10-22 23:16:29 -0300
committerGitHub <noreply@github.com>2022-10-22 23:16:29 -0300
commit1ab4b4a18336b57ffea012f026e9dd3589fdc2ad (patch)
tree4b02d5081e31850c524b28577c9701fddfc1cacf /maintainers/scripts/update.nix
parent84fc8bf89e5404ff981084870683bf91de490bbe (diff)
parent30dbdffcb51730949cb03cb483fac32163658861 (diff)
Merge pull request #160453 from jtojnar/upd-nix-unstable-git
maintainers/scripts/update.nix: Fix deduplication for unstableGitUpdater
Diffstat (limited to 'maintainers/scripts/update.nix')
-rwxr-xr-xmaintainers/scripts/update.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/maintainers/scripts/update.nix b/maintainers/scripts/update.nix
index 1a2f06c73a2c5..6543a6259828c 100755
--- a/maintainers/scripts/update.nix
+++ b/maintainers/scripts/update.nix
@@ -48,7 +48,17 @@ let
         let
           result = builtins.tryEval pathContent;
 
-          dedupResults = lst: nubOn ({ package, attrPath }: package.updateScript) (lib.concatLists lst);
+          somewhatUniqueRepresentant =
+            { package, attrPath }: {
+              inherit (package) updateScript;
+              # Some updaters use the same `updateScript` value for all packages.
+              # Also compare `meta.description`.
+              position = package.meta.position or null;
+              # We cannot always use `meta.position` since it might not be available
+              # or it might be shared among multiple packages.
+            };
+
+          dedupResults = lst: nubOn somewhatUniqueRepresentant (lib.concatLists lst);
         in
           if result.success then
             let