Index: openacs-4/packages/acs-tcl/tcl/apm-file-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/apm-file-procs.xql,v diff -u -N -r1.2 -r1.3 --- openacs-4/packages/acs-tcl/tcl/apm-file-procs.xql 24 Apr 2001 23:59:24 -0000 1.2 +++ openacs-4/packages/acs-tcl/tcl/apm-file-procs.xql 4 May 2001 06:04:28 -0000 1.3 @@ -1,18 +1,42 @@ - + - select file_type_key from apm_package_file_types + + select case when item_id is null then 0 else item_id end as item_id + from apm_package_versions + where version_id = :version_id + - + - select distribution_tarball from apm_package_versions where version_id = :version_id + + update apm_package_versions + set item_id = :item_id + where version_id = :version_id + + + + + select live_revision as revision_id + from cr_items + where item_id = :item_id + + + + + + + + select file_type_key from apm_package_file_types + +