On Mon, Jun 16, 2014 at 5:02 AM, Norbert Koch <viteno(a)xemacs.org> wrote:
Erm, has this changed in one of the last commits? I've done it
this way
since like forever ...
I don't know what changed, but package-net-packages.el has a bug that
is causing this, it seems to me. Function
package-net-packages-batch-convert-index-to-ini is using command line
arguments, but not marking them as used. Therefore, the last two
arguments on the command line, namely "/usr/users/nk/pkg-build/staging
standard" are processed by command-line once that function returns,
but since /usr/users/nk/pkg-build/staging is a directory, XEmacs
doesn't know what to do with it and complains.
I think this patch is needed:
diff -r 9954f5555c86 package-net-packages.el
--- a/package-net-packages.el Wed Jun 04 15:49:00 2014 -0600
+++ b/package-net-packages.el Tue Jun 17 10:46:32 2014 -0600
@@ -145,8 +145,8 @@
"Convert the package index to ini file format."
(unless noninteractive
(error "`package-net-packages-batch-convert-index-to-ini' is to
be used only with -batch"))
- (let ((dir (car command-line-args-left))
- (category (cadr command-line-args-left))
+ (let ((dir (pop command-line-args-left))
+ (category (pop command-line-args-left))
(package-get-require-signed-base-updates nil))
(package-net-packages-convert-index-to-ini dir nil category)))
And maybe that let should be a let*? Regards,
--
Jerry James
http://www.jamezone.org/
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta