Mercurial > hg > xemacs-beta
diff lisp/package-info.el @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children |
line wrap: on
line diff
--- a/lisp/package-info.el Mon Aug 13 11:19:22 2007 +0200 +++ b/lisp/package-info.el Mon Aug 13 11:20:41 2007 +0200 @@ -2,7 +2,7 @@ ;; Copyright (C) 1998 by Free Software Foundation, Inc. -;; Author: SL Baur <steve@xemacs.org> +;; Author: SL Baur <steve@altair.xemacs.org> ;; Keywords: internal ;; This file is part of XEmacs. @@ -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