From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61803 Path: news.gmane.org!not-for-mail From: Steve Youngs Newsgroups: gmane.emacs.xemacs.beta,gmane.emacs.gnus.general Subject: Re: where does package-get-info get its info from? Date: Tue, 31 Jan 2006 11:11:13 +1000 Organization: The SXEmacs Project Message-ID: References: <200601302339.k0UNdPND019441@athyra.sfbay.sun.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: sea.gmane.org 1138669990 21232 80.91.229.2 (31 Jan 2006 01:13:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:13:10 +0000 (UTC) Keywords: packages, xemacs, package-get-info, package, sumo, package-index, file, installed Cc: Gnus List Original-X-From: xemacs-beta-bounces@xemacs.org Tue Jan 31 02:13:07 2006 Return-path: Envelope-to: gexb-xemacs-beta@gmane.org Original-Received: from gwyn.tux.org ([199.184.165.135]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F3k3c-0006dc-Oe for gexb-xemacs-beta@gmane.org; Tue, 31 Jan 2006 02:12:03 +0100 Original-Received: from gwyn.tux.org (ident-user@localhost.localdomain [127.0.0.1]) by gwyn.tux.org (8.12.11/8.12.11) with ESMTP id k0V1BX3A015036; Mon, 30 Jan 2006 20:11:36 -0500 Original-Received: from gwyn.tux.org (ident-user@localhost.localdomain [127.0.0.1]) by gwyn.tux.org (8.12.11/8.12.11) with ESMTP id k0V1BU64015020 for ; Mon, 30 Jan 2006 20:11:31 -0500 Original-Received: (from xemacweb@localhost) by gwyn.tux.org (8.12.11/8.12.11/Submit) id k0V1BUU4015019 for xemacs-beta-mailman@xemacs.org; Mon, 30 Jan 2006 20:11:30 -0500 Original-Received: from gwyn.tux.org (ident-user@localhost.localdomain [127.0.0.1]) by gwyn.tux.org (8.12.11/8.12.11) with ESMTP id k0V1BRYO015008 for ; Mon, 30 Jan 2006 20:11:27 -0500 Original-Received: (from mailnull@localhost) by gwyn.tux.org (8.12.11/8.12.11/Submit) id k0V1BRh5015007 for xemacweb@tux.org; Mon, 30 Jan 2006 20:11:27 -0500 Original-Received: from bastard.youngs.au.com (203-206-170-37.perm.iinet.net.au [203.206.170.37]) by gwyn.tux.org (8.12.11/8.12.11) with ESMTP id k0V1BPnV014998 for ; Mon, 30 Jan 2006 20:11:26 -0500 Original-Received: from bastard.youngs.au.com (localhost [127.0.0.1]) by bastard.youngs.au.com (8.13.5/8.13.5) with ESMTP id k0V1BDb8031077 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 31 Jan 2006 11:11:13 +1000 Original-Received: (from steve@localhost) by bastard.youngs.au.com (8.13.5/8.13.5/Submit) id k0V1BDlI031076; Tue, 31 Jan 2006 11:11:13 +1000 Original-To: XEmacs beta X-Face: #O)>9erkUv7RJ~0G~5_6lEMz\HC2&~&kV2bsu4TWHI_v~<8Hj%KBBj1[*\uKF*dxbEzwAli ; tSuN`c)F,}p|7{6lA~e.P+7Qo\A%q"lJ7/UtUX@yEZ!X"Tph(3O8`nhPJF>hI4_GOvb%X{+e*Mi_| ^yTf#aTwGG,(3e41?C9B7Pak*'A$+$/hV Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEUpHB9XSkr8+87BuKOK f3UUQ+/kAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAwAAAAMADO7oxXAAAB2ElEQVR4 2nWU2XHDMAxEgYkKAEQWYIsuwJZcgCiy/5qCBanDEweTjwyeiMVpmv4x+uNJ01TLFSy7OwnReIJ5 /+fNwqqfoVKtmVgo1jxfwUIwiarLB3iIBSfOaha3E0AToMoQcoBGk00rOWEiezE38WTsSepAh5U1 tjrgf5gmvh+yJabbWWCW6NIhR2UdAZJnlBHFQNQY8x7KrKwGBnHhbRJNHaTspSGYWAxSf2GxXk98 S+x/08qHeJXWCnuj+UVWRgeFmKOI/tysJaRhH5RJcI2aeUuIVbepV/5+eu8YDbAS4zHaAu2Vwxvz sLy2DlLxZKkZkg79hdLF/IP5C3AbvwIlCQ3IRyjbBvqZKJn2engZA1+hTr2BJ8nBHBsAJnNBuVQt yOouvYSuZKvTKr+j4S0ZWMSKOLgpiwjzntpafLdperDtjVLsgNHzuQO1aFnavg3zfjh3dWtJs5S+ sMjK3NITQF/btUAcdWgPdLnBl/kxcQfzcV1kyym4Lb0EmnxLXEDbizOSgSeJMmWcnvDoNTTxu7YF xDFpuL7QvRtaJR5nbZtqc/HGC1e7vXYWaImwbQyDCcexpYSsHqZsBF2puI15bldpAPkaiLXWpUdq u5uW8i5my8evxy//LmnkhQmz/AAAABp6VFh0SlBFRy1Db2xvcnNwYWNlAAB42jMCAAAzADMRFn5j AAAAJ3pUWHRKUEVHLVNhbXBsaW5nLWZhY3RvcnMAAHjaM6ow0jGsMARhABGDAulkDxtiAAAAAElF TkSuQmCC Mail-Copies-To: never X-X-Day: Only 2430845 days till X-Day. Got Slack? X-URL: X-Request-PGP: X-OpenPGP-Fingerprint: 1659 2093 19D5 C06E D320 3A20 1D27 DB4B A94B 3003 X-Now-Playing: Get Back --- [The Beatles] X-Discordian-Date: Sweetmorn, the 31st day of Chaos, 3172. X-Attribution: SY X-Arch-Repo: steve@sxemacs.org--2006 http://arch.sxemacs.org/2006/ Mail-Followup-To: XEmacs beta , Gnus List In-Reply-To: <200601302339.k0UNdPND019441@athyra.sfbay.sun.com> (Mike Kupfer's message of "Mon, 30 Jan 2006 15:39:25 -0800") User-Agent: Gnus/5.110004 (No Gnus v0.4) SXEmacs/22.1.4 (Bentley Turbo, linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (gwyn.tux.org [0.0.0.0]); Mon, 30 Jan 2006 20:11:36 -0500 (EST) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (gwyn.tux.org [0.0.0.0]); Mon, 30 Jan 2006 20:11:31 -0500 (EST) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (gwyn.tux.org [0.0.0.0]); Mon, 30 Jan 2006 20:11:27 -0500 (EST) X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-1.6 (gwyn.tux.org [199.184.165.136]); Mon, 30 Jan 2006 20:11:27 -0500 (EST) X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on gwyn.tux.org X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on gwyn.tux.org X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on gwyn.tux.org X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on gwyn.tux.org X-Virus-Status: Clean X-XEmacs-List: beta X-BeenThere: xemacs-beta@xemacs.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: XEmacs Beta Testers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Original-Sender: xemacs-beta-bounces@xemacs.org Errors-To: xemacs-beta-bounces@xemacs.org Xref: news.gmane.org gmane.emacs.xemacs.beta:22011 gmane.emacs.gnus.general:61803 Archived-At: --=-=-= Content-Transfer-Encoding: quoted-printable * Mike Kupfer writes: SY> (package-get-info 'gnus 'date) SY> =3D> 2005-11-15 > Hmm. When I do that, I get > (package-get-info 'gnus 'date) > "2003-10-13" > (package-get-info 'gnus 'author-version) > "5.10.2" ...because you have _that_ version installed. :-) > I thought it might be getting that from > $HOME/.xemacs/package-index.LATEST.gpg That's exactly where the info originates from. Well, some of the info does. Some of it comes from autoloaded forms in `_pkg.el' files in each package lisp directory. > But if I blow away that file and invoke package-get-info in a new > XEmacs process, it creates a new package-index.LATEST.gpg and > gives me the same results. Because the package-index file it created was the same as the one you blew away. It'd just be a copy of the file that is in /usr/local/lib/xemacs-x.x.x/etc/. And... > The packages that I'm actually running are from a sumo that I > unpacked in /usr/local/lib/xemacs/xemacs-packages. ...because you are a "Sumo-installer" and not a "PUI-installer", your package-index file never gets updated. Yes, I know that seems like a bug or flaw in the way XEmacs handles package management. But really it isn't. Sumo's are _not_ part of and have no knowledge of package management. Installing a Sumo would be like getting a RPM package, converting it to a .tar.gz and installing it with `tar zxf file.tar.gz'. The package would install and work fine, but the underlying RPM database would have no knowledge of it. So, the moral to this story is: If you want the XEmacs PUI tools to give you the best results, always install/remove/update your packages with PUI. Sure, use the Sumo's to set up a virgin installation, but once the Sumo is installed, continue maintaining the packages with PUI From=20that point on. I use the following incantation to keep all of my packages up to date...=20 Tools -> Packages -> Set Download Site ... Tools -> Packages -> Update Installed Packages This elisp should also work (untested)... ,---- | (defun sy-update-my-pkgs () | "Just an easy way to update installed packages." | (interactive) | (let ((package-get-remote '("ftp.xemacs.org" "pub/xemacs/packages"))) | (package-get-update-all))) `---- And while I'm on a roll with the recipes, this will make `package-get-info' use a package-index from a remote package mirror...=20 ,---- | (let ((package-get-remote '("ftp.xemacs.org" "pub/xemacs/packages"))) | (package-get-info 'gnus 'date nil 'remote)) `---- =2D-=20 |---------------------| | I am Dyslexic of Borg. |=20 | Fusistance is retile. Your arse will be laminated. | |---------------------------------------| --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Eicq - The XEmacs ICQ Client iEYEABECAAYFAkPeuTEACgkQHSfbS6lLMAPz4QCgnLs+oxb3OOs+ToVyou71iZt5 IMAAoKHaOg5C/YMS+buYAgOnT+2PWAfi =VIHb -----END PGP SIGNATURE----- --=-=-=--