Index: openacs-4/packages/acs-admin/www/apm/build-repository.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/Attic/build-repository.tcl,v diff -u -N -r1.2 -r1.3 --- openacs-4/packages/acs-admin/www/apm/build-repository.tcl 7 Nov 2003 11:36:47 -0000 1.2 +++ openacs-4/packages/acs-admin/www/apm/build-repository.tcl 14 Nov 2003 12:21:45 -0000 1.3 @@ -167,9 +167,13 @@ ns_write "No files in package" } else { set cmd [list exec [apm_tar_cmd] cf - 2>/dev/null] - lappend cmd -C $package_path + + # The path to the 'packages' directory in the checkout + set packages_root_path [eval file join [lrange [file split $spec_file] 0 end-2]] + + lappend cmd -C $packages_root_path foreach file $files { - lappend cmd $file + lappend cmd $package_key/$file } lappend cmd "|" [apm_gzip_cmd] -c ">" $apm_file ns_log Notice "Executing: [ad_quotehtml $cmd]"