diff scripts/pkg/pkg.m @ 7739:ca9bfe159144

Set archprefix for -local and -global options to pkg
author David Bateman <dbateman@free.fr>
date Tue, 29 Apr 2008 03:37:06 -0400
parents d6e63a15cc75
children 30d15ab0ce01
line wrap: on
line diff
--- a/scripts/pkg/pkg.m
+++ b/scripts/pkg/pkg.m
@@ -248,11 +248,14 @@
 	global_install = false;
 	if (! user_prefix)
 	  prefix = tilde_expand (fullfile ("~", "octave"));
+	  archprefix = prefix;
 	endif
       case "-global"
 	global_install = true;
 	if (! user_prefix)
 	  prefix = fullfile (OCTAVE_HOME (), "share", "octave", "packages");
+	  archprefix = fullfile (octave_config_info ("libexecdir"),
+				 "octave", "packages");
 	endif
       case available_actions
 	if (strcmp (action, "none"))