From 8fe588d5395e40ae6d8f01ab31de08139c1b929d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 26 Feb 2024 15:17:27 +0100 Subject: [PATCH] Change `Cite` to not include a version in the generated keys (#5653) --- lib/package.gi | 4 +--- tst/testinstall/package.tst | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/package.gi b/lib/package.gi index 4e2e65a655..35658e4884 100644 --- a/lib/package.gi +++ b/lib/package.gi @@ -2718,9 +2718,7 @@ InstallGlobalFunction( BibEntry, function( arg ) if key = false then if GAP then - key:= Concatenation( "GAP", GAPInfo.Version ); - elif IsBound( pkginfo.Version ) then - key:= Concatenation( pkginfo.PackageName, pkginfo.Version ); + key:= "GAP"; else key:= pkginfo.PackageName; fi; diff --git a/tst/testinstall/package.tst b/tst/testinstall/package.tst index 3c59fe26bf..1320aa0795 100644 --- a/tst/testinstall/package.tst +++ b/tst/testinstall/package.tst @@ -543,7 +543,7 @@ HTML: BibXML: - + ActiveAuthor RetiredAuthor @@ -559,7 +559,7 @@ BibXML: BibTeX: -@misc{ mockpkg0.1, +@misc{ mockpkg, author = {Author, A. and Author, R. and Maintainer, O.}, title = {{mockpkg}, A mock package for use by the GAP test suite, {V}ersion 0.1}, @@ -598,7 +598,7 @@ HTML: BibXML: - + ActiveAuthor RetiredAuthor @@ -614,7 +614,7 @@ BibXML: BibTeX: -@misc{ mockpkg0.1, +@misc{ mockpkg, author = {Author, A. and Author, R. and Maintainer, O.}, title = {{mockpkg}, A mock package for use by the GAP test suite, {V}ersion 0.1},