X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fpackage-info.el;h=7428f4908e6c5bd33c4117886a94f02521468cc3;hb=935bd140755c078ec2c640788d565536c756bba2;hp=e3be100aff25441e9b1566b83e54a94b9bc7088a;hpb=afa9772e3fcbb4e80e3e4cfd1a40b4fccc6d08b8;p=chise%2Fxemacs-chise.git.1 diff --git a/lisp/package-info.el b/lisp/package-info.el index e3be100..7428f49 100644 --- a/lisp/package-info.el +++ b/lisp/package-info.el @@ -48,12 +48,11 @@ ; (setq result (md5 (current-buffer)))) ; result)) +;;; APA: Stolen from package-get in package-get.el (defun pi-md5sum (file) (with-temp-buffer - (call-process "md5sum" file t) - (goto-char (point-min)) - (looking-at "[a-z0-9]+") - (buffer-substring (match-beginning 0) (match-end 0)))) + (insert-file-contents-literally file) + (md5 (current-buffer)))) (defun pi-update-key (key value) (save-excursion @@ -95,7 +94,8 @@ author-version -- The original Author's version #. maintainer -- The package maintainer. category -- The build category." (unless noninteractive - (error "`batch-update-package-info' is to be used only with -batch")) + (error 'invalid-operation + "`batch-update-package-info' is to be used only with -batch")) (let ((version (nth 0 command-line-args-left)) (filename (nth 1 command-line-args-left)) (requires (nth 2 command-line-args-left))