unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Obtaining the version of an installed package
@ 2021-08-09  8:28 Bozhidar Batsov
  2021-08-09 12:58 ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Bozhidar Batsov @ 2021-08-09  8:28 UTC (permalink / raw)
  To: Emacs Devel

[-- Attachment #1: Type: text/plain, Size: 769 bytes --]

Hey everyone, 

I'm wondering if there's an API for obtaining metadata about installed packages, in particular the version information.
For years I was using this function from pkg-info https://github.com/emacsorphanage/pkg-info/blob/master/pkg-info.el#L65, but I'm wondering if it'd be easy to strip one dependency from my packages. 

I've skimmed over package.el, but I didn't notice anything that does this, that's why I decided to ask on the mailing list as well.
I see there's the function `package-get-descriptor`, but it seems it was added only 7 months ago, so it can't be used in packages that need to support several Emacs versions. Copying it and related functions might work, but I'm hoping to find a more elegant solution. Thanks in advance for your help! 

[-- Attachment #2: Type: text/html, Size: 1105 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-11 13:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-09  8:28 Obtaining the version of an installed package Bozhidar Batsov
2021-08-09 12:58 ` Stefan Monnier
2021-08-09 14:03   ` Bozhidar Batsov
2021-08-09 15:35     ` Philip Kaludercic
2021-08-09 15:39     ` Stefan Monnier
2021-08-11  7:15       ` Bozhidar Batsov
2021-08-11 13:28         ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).