comparison lisp/package-get.el @ 776:79940b592197

[xemacs-hg @ 2002-03-15 07:43:14 by ben] .cvsignore: ignore .tmp files that are getting auto-created by VC. Makefile.in.in: Use -no-packages to avoid problems with package files shadowing core files (e.g. unicode.el in mule-ucs). alloc.c, emacs.c, lisp.h: add new -no-packages. make sure list of args for sorting is actually correct. clean up arg parsing code. xemacs.mak: Use -no-packages to avoid problems with package files shadowing core files (e.g. unicode.el in mule-ucs). Makefile: Use -no-packages to avoid problems with package files shadowing core files (e.g. unicode.el in mule-ucs). mule\chinese.el, mule\japan-util.el: fix warnings. behavior-defs.el: fix errors with require. bytecomp-runtime.el: add new funs {when,and}-{f}boundp, clean up docs. cus-edit.el: pretty-print values. dump-paths.el, find-paths.el, startup.el, setup-paths.el: fix problems/inconsistencies parsing options. support new -no-packages option. merge code duplication in dump-paths and startup. lisp-mode.el: indent macrolet and labels correctly. update comments about lisp-indent-function. flet already handled in cl. apropos.el, auto-save.el, buff-menu.el, cl-extra.el, dragdrop.el, faces.el, files.el, fill.el, font-lock.el, font.el, gtk-faces.el, gui.el, help.el, hyper-apropos.el, info.el, isearch-mode.el, keymap.el, lisp-mnt.el, mouse.el, package-admin.el, package-get.el, printer.el, process.el, resize-minibuffer.el, simple.el, toolbar-items.el, wid-edit.el, win32-native.el: fix warnings. very-early-lisp.el: update docs. mule\chinese.el, mule\japan-util.el: fix warnings. mule\chinese.el, mule\japan-util.el: fix warnings. behavior-defs.el: fix errors with require. bytecomp-runtime.el: add new funs {when,and}-{f}boundp, clean up docs. cus-edit.el: pretty-print values. dump-paths.el, find-paths.el, startup.el, setup-paths.el: fix problems/inconsistencies parsing options. support new -no-packages option. merge code duplication in dump-paths and startup. lisp-mode.el: indent macrolet and labels correctly. update comments about lisp-indent-function. flet already handled in cl. apropos.el, auto-save.el, buff-menu.el, cl-extra.el, dragdrop.el, faces.el, files.el, fill.el, font-lock.el, font.el, gtk-faces.el, gui.el, help.el, hyper-apropos.el, info.el, isearch-mode.el, keymap.el, lisp-mnt.el, mouse.el, package-admin.el, package-get.el, printer.el, process.el, resize-minibuffer.el, simple.el, toolbar-items.el, wid-edit.el, win32-native.el: fix warnings. very-early-lisp.el: update docs. mule\chinese.el, mule\japan-util.el: fix warnings. Makefile.in.in: Use -no-packages to avoid problems with package files shadowing core files (e.g. unicode.el in mule-ucs). Makefile.in.in: Use -no-packages to avoid problems with package files shadowing core files (e.g. unicode.el in mule-ucs).
author ben
date Fri, 15 Mar 2002 07:43:43 +0000
parents 943eaba38521
children e38acbeb1cae
comparison
equal deleted inserted replaced
775:7d972c3de90a 776:79940b592197
443 (if package-entries-are-signed 443 (if package-entries-are-signed
444 (progn 444 (progn
445 (setq package-get-continue-update-base nil) 445 (setq package-get-continue-update-base nil)
446 (autoload 'mc-setversion "mc-setversion") 446 (autoload 'mc-setversion "mc-setversion")
447 (with-fboundp 'mc-setversion 447 (with-fboundp 'mc-setversion
448 (or 448 (if-boundp 'exec-suffix-list
449 (cond ((locate-file "gpg" exec-path exec-suffix-list) 449 (or
450 (mc-setversion "gpg")) 450 (cond ((locate-file "gpg" exec-path exec-suffix-list)
451 ((locate-file "pgpe" exec-path exec-suffix-list) 451 (mc-setversion "gpg"))
452 (mc-setversion "5.0")) 452 ((locate-file "pgpe" exec-path exec-suffix-list)
453 ((locate-file "pgp" exec-path exec-suffix-list) 453 (mc-setversion "5.0"))
454 (mc-setversion "2.6"))) 454 ((locate-file "pgp" exec-path exec-suffix-list)
455 (error "Can't find a suitable pgp executable"))) 455 (mc-setversion "2.6")))
456 (error "Can't find a suitable pgp executable"))
457 (error 'unimplemented "`apel' package unavailable")))
456 (autoload 'mc-verify "mc-toplev") 458 (autoload 'mc-verify "mc-toplev")
457 (declare-fboundp (mc-verify)) 459 (declare-fboundp (mc-verify))
458 (setq package-get-continue-update-base t)) 460 (setq package-get-continue-update-base t))
459 (if (yes-or-no-p 461 (if (yes-or-no-p
460 "Package Index is not PGP signed. Continue anyway? ") 462 "Package Index is not PGP signed. Continue anyway? ")
964 Creates `package-get-dir' if it doesn't exist." 966 Creates `package-get-dir' if it doesn't exist."
965 (interactive "FPackage filename: ") 967 (interactive "FPackage filename: ")
966 (if (not (file-exists-p package-get-dir)) 968 (if (not (file-exists-p package-get-dir))
967 (make-directory package-get-dir)) 969 (make-directory package-get-dir))
968 (expand-file-name 970 (expand-file-name
969 (file-name-nondirectory (or (and (fboundp 'efs-ftp-path) 971 (file-name-nondirectory (or (and-fboundp 'efs-ftp-path
970 (nth 2 (efs-ftp-path filename))) 972 (nth 2 (efs-ftp-path filename)))
971 filename)) 973 filename))
972 (file-name-as-directory package-get-dir))) 974 (file-name-as-directory package-get-dir)))
973 975
974 (defun package-get-remote-filename (search filename) 976 (defun package-get-remote-filename (search filename)
975 "Return FILENAME as a remote filename. 977 "Return FILENAME as a remote filename.