Index: openacs-4/packages/acs-tcl/tcl/apm-install-procs-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/apm-install-procs-oracle.xql,v
diff -u -r1.22 -r1.23
--- openacs-4/packages/acs-tcl/tcl/apm-install-procs-oracle.xql	25 Sep 2017 17:59:21 -0000	1.22
+++ openacs-4/packages/acs-tcl/tcl/apm-install-procs-oracle.xql	14 Jun 2018 14:43:59 -0000	1.23
@@ -228,20 +228,6 @@
       </querytext>
 </fullquery>
 
-<fullquery name="apm_dependency_provided_p.get_service_versions">
-      <querytext>
-      
-	select service_version
-	from apm_package_dependencies d, apm_package_types a, apm_package_versions v
-	where d.dependency_type = 'provides'
-	and d.version_id = v.version_id
-	and d.service_uri = :dependency_uri
-	and v.installed_p = 't'
-	and a.package_key = v.package_key
-    
-      </querytext>
-</fullquery>
-
 <fullquery name="apm_copy_param_to_descendents.param_exists">      
   <querytext>
     begin
Index: openacs-4/packages/acs-tcl/tcl/apm-install-procs-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/apm-install-procs-postgresql.xql,v
diff -u -r1.22 -r1.23
--- openacs-4/packages/acs-tcl/tcl/apm-install-procs-postgresql.xql	25 Sep 2017 17:59:21 -0000	1.22
+++ openacs-4/packages/acs-tcl/tcl/apm-install-procs-postgresql.xql	14 Jun 2018 14:43:59 -0000	1.23
@@ -169,20 +169,6 @@
       </querytext>
 </fullquery>
 
- <fullquery name="apm_dependency_provided_p.get_service_versions">
-      <querytext>
-      
-	select service_version
-	from apm_package_dependencies d, apm_package_types a, apm_package_versions v
-	where d.dependency_type = 'provides'
-	and d.version_id = v.version_id
-	and d.service_uri = :dependency_uri
-	and v.installed_p = 't'
-	and a.package_key = v.package_key
-    
-      </querytext>
-</fullquery>
-
 <fullquery name="apm_copy_param_to_descendents.param_exists">      
   <querytext>
     select apm__parameter_p(:descendent_package_key, :parameter_name);
Index: openacs-4/packages/acs-tcl/tcl/apm-install-procs.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/apm-install-procs.xql,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/acs-tcl/tcl/apm-install-procs.xql	17 Oct 2010 21:06:09 -0000	1.10
+++ openacs-4/packages/acs-tcl/tcl/apm-install-procs.xql	14 Jun 2018 14:43:59 -0000	1.11
@@ -1,7 +1,20 @@
 <?xml version="1.0"?>
 <queryset>
  
- 
+<fullquery name="apm_dependency_provided_p.get_service_versions">
+      <querytext>
+      
+	select service_version
+	from apm_package_dependencies d, apm_package_types a, apm_package_versions v
+	where d.dependency_type = 'provides'
+	and d.version_id = v.version_id
+	and d.service_uri = :dependency_uri
+	and v.installed_p = 't'
+	and a.package_key = v.package_key
+    
+      </querytext>
+</fullquery>
+  
 <fullquery name="apm_package_deinstall.apm_uninstall_record">      
       <querytext>