diff scripts/pkg/pkg.m @ 7024:7e3492d02821

[project @ 2007-10-14 19:28:42 by dbateman]
author dbateman
date Sun, 14 Oct 2007 19:28:42 +0000
parents a1dbe9d80eee
children 66c6cab344f7
line wrap: on
line diff
--- a/scripts/pkg/pkg.m	Sat Oct 13 16:09:15 2007 +0000
+++ b/scripts/pkg/pkg.m	Sun Oct 14 19:28:42 2007 +0000
@@ -1095,7 +1095,11 @@
     endif
 
     ## Split into architecture dependent and independent files
-    idx = cellfun (@(x) is_architecture_dependent (x), filenames);
+    if (isempty (filenames))
+      idx = [];
+    else
+      idx = cellfun (@(x) is_architecture_dependent (x), filenames);
+    endif
     archdependent = filenames (idx);
     archindependent = filenames (!idx);