[Pkg-octave-commit] [SCM] octave-pkg-dev branch, master, updated. 6ebacb3770a92f0e08517cc8d994118b7ead5d0a

Rafael Laboissiere rafael at debian.org
Sun Jun 7 19:20:57 UTC 2009


The following commit has been merged in the master branch:
commit 6ebacb3770a92f0e08517cc8d994118b7ead5d0a
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Sun Jun 7 20:55:25 2009 +0200

    Use exist() to check presence of PKG_ADD.bak
    
    The previous method with glob() does not work on Octave 3.2.0, because
    cells are not converted to boolean values.

diff --git a/octave-pkg.mk.in b/octave-pkg.mk.in
index 5619959..96ddd93 100644
--- a/octave-pkg.mk.in
+++ b/octave-pkg.mk.in
@@ -62,7 +62,7 @@ install-pkg:
 		      [pwd(),'/$(debpkg)/$(bpath)']);			\
 		 pkg ('local_list', [pwd(),'/$(local_list)']);		\
 		 pkg ('global_list', [pwd(),'/$(global_list)']);	\
-		 if (glob ('PKG_ADD.bak')),				\
+		 if (exist ('PKG_ADD.bak') == 2),			\
 		     movefile ('PKG_ADD.bak', 'PKG_ADD');		\
 		 endif;							\
 		 pkg -verbose -nodeps install ."

-- 
octave-pkg-dev



More information about the Pkg-octave-commit mailing list