octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41936] package management in octave has a syn


From: anonymous
Subject: [Octave-bug-tracker] [bug #41936] package management in octave has a syntactic error in install.m
Date: Fri, 18 Apr 2014 06:20:25 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

Follow-up Comment #2, bug #41936 (project octave):

I have the same problem.  It looks like a Gentoo problem.  Here is the diff
between vanilla 3.8.1's install.m and the Gentoo one.  I'll file a bug report
with gentoo.

--- scripts/pkg/private/install.m       2014-03-06 11:37:51.000000000 -0800
+++ /usr/share/octave/3.8.1/m/pkg/private/install.m     2014-04-17
18:02:24.205800671 -0700
@@ -63,6 +63,14 @@
       tgz = files{i};
 
       if (exist (tgz, "file"))
+      ## The filename pointed to an uncompressed package to begin with.
+      if (exist (tgz, "dir"))
+        if (tgz(1) == '/')
+          packdir = tgz;
+        else
+          packdir = fullfile (pwd(), tgz);
+        endif
+      elseif (exist (tgz, "file"))
         ## Create a temporary directory.
         tmpdir = tmpnam ();
         tmpdirs{end+1} = tmpdir;
@@ -89,20 +97,12 @@
         if (length (dirlist) > 3)
           error ("bundles of packages are not allowed");
         endif
-      endif
 
-      ## The filename pointed to an uncompressed package to begin with.
-      if (exist (tgz, "dir"))
-        dirlist = {".", "..", tgz};
+        ## The two first entries of dirlist are "." and "..".
+        packdir = fullfile (tmpdir, dirlist{3});
       endif
 
       if (exist (tgz, "file") || exist (tgz, "dir"))
-        ## The two first entries of dirlist are "." and "..".
-        if (exist (tgz, "file"))
-          packdir = fullfile (tmpdir, dirlist{3});
-        else
-          packdir = fullfile (pwd (), dirlist{3});
-        endif
         packdirs{end+1} = packdir;
 
         ## Make sure the package contains necessary files.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41936>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]