Mercurial > hg > xemacs-beta
diff lisp/package-info.el @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | 972bbb6d6ca2 |
children | 74fd4e045ea6 |
line wrap: on
line diff
--- a/lisp/package-info.el Mon Aug 13 11:01:58 2007 +0200 +++ b/lisp/package-info.el Mon Aug 13 11:03:08 2007 +0200 @@ -48,11 +48,12 @@ ; (setq result (md5 (current-buffer)))) ; result)) -;;; APA: Stolen from package-get in package-get.el (defun pi-md5sum (file) (with-temp-buffer - (insert-file-contents-literally file) - (md5 (current-buffer)))) + (call-process "md5sum" file t) + (goto-char (point-min)) + (looking-at "[a-z0-9]+") + (buffer-substring (match-beginning 0) (match-end 0)))) (defun pi-update-key (key value) (save-excursion