[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug with pkg if only a single file is installed
From: |
David Bateman |
Subject: |
Bug with pkg if only a single file is installed |
Date: |
Wed, 13 Sep 2006 21:35:14 +0200 |
User-agent: |
Thunderbird 1.5.0.5 (X11/20060817) |
It seems that pkg can fail if there is only a single file to install. An
example is the combinatorics toolbox that has a single file plus a
PKG_ADD with autoload's for other functions. I think the attached patch
addresses this, thogh Soren should probably comment..
D.
Index: scripts/pkg/pkg.m
===================================================================
RCS file: /cvs/octave/scripts/pkg/pkg.m,v
retrieving revision 1.10
diff -c -r1.10 pkg.m
*** scripts/pkg/pkg.m 12 Sep 2006 21:25:27 -0000 1.10
--- scripts/pkg/pkg.m 13 Sep 2006 19:31:54 -0000
***************
*** 599,604 ****
--- 599,611 ----
function copy_files (desc, packdir, bindir)
## Copy the files from "inst" to installdir
if (! dirempty([packdir "inst"]))
+ if (! exist (desc.dir, "dir"))
+ [status, output] = mkdir (desc.dir);
+ if (status != 1)
+ error("Couldn't create installation directory %s : %s\n",
+ desc.dir, output);
+ endif
+ endif
[status, output] = system(["cp -R " packdir "inst/* " desc.dir]);
if (status != 0)
rm_rf(desc.dir);
- Bug with pkg if only a single file is installed,
David Bateman <=
- Re: Bug with pkg if only a single file is installed, Søren Hauberg, 2006/09/13
- Re: Bug with pkg if only a single file is installed, John W. Eaton, 2006/09/13
- Re: Bug with pkg if only a single file is installed, David Bateman, 2006/09/14
- Re: Bug with pkg if only a single file is installed, Søren Hauberg, 2006/09/14
- Re: Bug with pkg if only a single file is installed, David Bateman, 2006/09/14
- Re: Bug with pkg if only a single file is installed, Søren Hauberg, 2006/09/14
- Re: Bug with pkg if only a single file is installed, Søren Hauberg, 2006/09/14
- Re: Bug with pkg if only a single file is installed, David Bateman, 2006/09/14
- Re: Bug with pkg if only a single file is installed, Søren Hauberg, 2006/09/14