try this. i submitted to patches last night but haven't even gotten
the usual (immediate) confirmation. i will resubmit.
greg
>>>> "CW" == Christoph Wedler
<wedler(a)fmi.uni-passau.de> writes:
CW>
CW> Today, I tried to update some packages with by selecting menu item
CW> Options -> Customize -> Update Packages.
CW>
CW> With the first run, it stopped because of
CW>
CW> Doing chmod: No such file or directory,
/home/clstaff/wedler/xemacs/xemacs-21.0-b57/lib/xemacs/xemacs-packages/pkginfo/MANIFEST.mailcrypt
CW>
CW> The second selection of this menu item deleted by gnus files :-(
CW>
Index: lisp/package-admin.el
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs-20/lisp/package-admin.el,v
retrieving revision 1.6
diff -u -r1.6 package-admin.el
--- package-admin.el 1998/09/26 00:21:59 1.6
+++ package-admin.el 1998/10/02 04:49:18
@@ -405,7 +405,7 @@
(if (file-directory-p file)
;; Keep a record of each directory
(setq dirs (cons file dirs))
- (progn
+ (when (file-exists-p file)
;; Delete each file.
;; Make sure that the file is writable.
;; (This is important under MS Windows.)
@@ -446,8 +446,9 @@
)
(kill-buffer tmpbuf)
;; Delete the MANIFEST file
- (set-file-modes manifest-file 438) ;; 438 -> #o666
- (delete-file manifest-file)
+ (when (file-exists-p manifest-file)
+ (set-file-modes manifest-file 438) ;; 438 -> #o666
+ (delete-file manifest-file))
(message "Removing old files for package \"%s\" ... done"
package)
)
(progn