diff lisp/package-get.el @ 390:c6012109f545 r21-2-10

Import from CVS: tag r21-2-10
author cvs
date Mon, 13 Aug 2007 11:10:03 +0200
parents aabb7f5b1c81
children 6719134a07c2
line wrap: on
line diff
--- a/lisp/package-get.el	Mon Aug 13 11:09:43 2007 +0200
+++ b/lisp/package-get.el	Mon Aug 13 11:10:03 2007 +0200
@@ -941,15 +941,19 @@
 not, then it uses the (car search) as the remote site-name and the (cadr
 search) as the remote-directory and concatenates filename.  In other
 words
-	site-name:remote-directory/filename
+	site-name:remote-directory/filename.
+
+If (car search) is nil, (cadr search is interpreted as  a local directory).
 "
-  (if (efs-ftp-path filename)
+  (if (file-remote-p filename)
       filename
     (let ((dir (cadr search)))
-      (concat (if (string-match "@" (car search))
-		  "/"
-		"/anonymous@")
-	      (car search) ":"
+      (concat (when (car search)
+		(concat
+		 (if (string-match "@" (car search))
+		     "/"
+		   "/anonymous@")
+		 (car search) ":"))
 	      (if (string-match "/$" dir)
 		  dir
 		(concat dir "/"))