 
       end if;     
 
-      --Get a list of variables from the package spec
-      l_var_list := get_vars_from_compiled_object(i_name     => p_package_name
-                                                 ,i_owner    => l_owner 
-                                                 ,i_type     =>  'PACKAGE'
-                                                 ,i_var_list => l_var_list   );
-
-      --Get a list of variables from the package body
-      l_var_list := get_vars_from_compiled_object(i_name     => p_package_name
-                                                 ,i_owner    => l_owner 
-                                                 ,i_type     =>  'PACKAGE BODY' 
-                                                 ,i_var_list => l_var_list   );
-
-
+      --Recompile all referenced packages with PLScope before compiling this package with PLScope
       for l_referenced_object in (  select * 
                                     from  all_dependencies  
                                     where name  = p_package_name

    end loop;
  END;


--------------------------------------------------------------------
-- log_param_list - Log the param list



  END LOOP;
 

  log_new_var_list(i_old_var_list => i_var_list
                  ,i_new_var_list => l_var_list);

 
  return l_var_list;

EXCEPTION
