Function: inversion-locate-package-files
inversion-locate-package-files is a byte-compiled function defined in
inversion.el.gz.
Signature
(inversion-locate-package-files PACKAGE DIRECTORY &optional VERSION)
Documentation
Get a list of distributions of PACKAGE from DIRECTORY.
DIRECTORY can be an ange-ftp compatible filename, such as:
"/ftp@ftp1.sourceforge.net/pub/sourceforge/PACKAGE"
If it is a URL, wget will be used for download.
Optional argument VERSION will restrict the list of available versions
to the file matching VERSION exactly, or nil.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/inversion.el.gz
;;; URL and downloading code
;;
(defun inversion-locate-package-files (package directory &optional version)
"Get a list of distributions of PACKAGE from DIRECTORY.
DIRECTORY can be an ange-ftp compatible filename, such as:
\"/ftp@ftp1.sourceforge.net/pub/sourceforge/PACKAGE\"
If it is a URL, wget will be used for download.
Optional argument VERSION will restrict the list of available versions
to the file matching VERSION exactly, or nil."
;;DIRECTORY should also allow a URL:
;; \"https://ftp1.sourceforge.net/PACKAGE\"
;; but then I can get file listings easily.
(if (symbolp package) (setq package (symbol-name package)))
(directory-files directory t
(if version
(concat "^" package "-" version "\\>")
package)))