comparison lisp/package-get.el @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents a307f9a2021d
children 79940b592197
comparison
equal deleted inserted replaced
770:336a418893b5 771:943eaba38521
420 "Update the package-get database with entries from BUFFER. 420 "Update the package-get database with entries from BUFFER.
421 BUFFER defaults to the current buffer. This command can be 421 BUFFER defaults to the current buffer. This command can be
422 used interactively, for example from a mail or news buffer." 422 used interactively, for example from a mail or news buffer."
423 (interactive) 423 (interactive)
424 (setq buf (or buf (current-buffer))) 424 (setq buf (or buf (current-buffer)))
425 (let (content-beg content-end beg end) 425 (let (content-beg content-end ;beg end
426 )
426 (save-excursion 427 (save-excursion
427 (set-buffer buf) 428 (set-buffer buf)
428 (goto-char (point-min)) 429 (goto-char (point-min))
429 (setq content-beg (point)) 430 (setq content-beg (point))
430 (setq content-end (save-excursion (goto-char (point-max)) (point))) 431 (setq content-end (save-excursion (goto-char (point-max)) (point)))
431 (when (re-search-forward package-get-pgp-signed-begin-line nil t) 432 (when (re-search-forward package-get-pgp-signed-begin-line nil t)
432 (setq beg (match-beginning 0)) 433 ;(setq beg (match-beginning 0))
433 (setq content-beg (match-end 0))) 434 (setq content-beg (match-end 0)))
434 (when (re-search-forward package-get-pgp-signature-begin-line nil t) 435 (when (re-search-forward package-get-pgp-signature-begin-line nil t)
435 (setq content-end (match-beginning 0)) 436 (setq content-end (match-beginning 0))
436 (setq package-entries-are-signed t)) 437 (setq package-entries-are-signed t))
437 (when (re-search-forward package-get-pgp-signature-end-line nil t) 438 (when (re-search-forward package-get-pgp-signature-end-line nil t)
438 (setq end (point))) 439 ;(setq end (point))
440 )
439 (setq package-get-continue-update-base t) 441 (setq package-get-continue-update-base t)
440 (if package-get-require-signed-base-updates 442 (if package-get-require-signed-base-updates
441 (if package-entries-are-signed 443 (if package-entries-are-signed
442 (progn 444 (progn
443 (setq package-get-continue-update-base nil) 445 (setq package-get-continue-update-base nil)
444 (autoload 'mc-setversion "mc-setversion") 446 (autoload 'mc-setversion "mc-setversion")
445 (or 447 (with-fboundp 'mc-setversion
446 (cond ((locate-file "gpg" exec-path exec-suffix-list) 448 (or
447 (mc-setversion "gpg")) 449 (cond ((locate-file "gpg" exec-path exec-suffix-list)
448 ((locate-file "pgpe" exec-path exec-suffix-list) 450 (mc-setversion "gpg"))
449 (mc-setversion "5.0")) 451 ((locate-file "pgpe" exec-path exec-suffix-list)
450 ((locate-file "pgp" exec-path exec-suffix-list) 452 (mc-setversion "5.0"))
451 (mc-setversion "2.6"))) 453 ((locate-file "pgp" exec-path exec-suffix-list)
452 (error "Can't find a suitable pgp executable")) 454 (mc-setversion "2.6")))
455 (error "Can't find a suitable pgp executable")))
453 (autoload 'mc-verify "mc-toplev") 456 (autoload 'mc-verify "mc-toplev")
454 (mc-verify) 457 (declare-fboundp (mc-verify))
455 (setq package-get-continue-update-base t)) 458 (setq package-get-continue-update-base t))
456 (if (yes-or-no-p 459 (if (yes-or-no-p
457 "Package Index is not PGP signed. Continue anyway? ") 460 "Package Index is not PGP signed. Continue anyway? ")
458 (setq package-get-continue-update-base t) 461 (setq package-get-continue-update-base t)
459 (error "Package database not updated") 462 (error "Package database not updated")