OSSP CVS Repository

ossp - Check-in [4760]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4760
Date: 2004-Oct-22 23:17:58 (local)
2004-Oct-22 21:17:58 (UTC)
User:rse
Branch:
Comment: fix module loading
Tickets:
Inspections:
Files:
ossp-pkg/due/.duerc      1.1 -> 1.2     4 inserted, 2 deleted

ossp-pkg/due/.duerc 1.1 -> 1.2

--- .duerc       2004/07/10 08:17:12     1.1
+++ .duerc       2004/10/22 21:17:58     1.2
@@ -72,6 +72,8 @@
             local mod_name
             for mod_name in . `cd ${mod_dir} && echo due.*.sh`; do
                 [ ".${mod_name}" = ".." -o ".${mod_name}" = ".*" ] && continue
+                mod_name=${mod_name/#due./}
+                mod_name=${mod_name/%.sh/}
                 eval "DUE_AVAILABLE=\"${DUE_AVAILABLE}${DUE_AVAILABLE:+,}${mod_name}\""
             done
         done
@@ -127,8 +129,8 @@
                         local mod_dir
                         for mod_dir in ${mod_path//:/ }; do
                             [ ".${mod_dir}" = . ] && continue
-                            if [ -f "${mod_dir}/${mod_name}" ]; then
-                                mod_file="${mod_dir}/${mod_name}"
+                            if [ -f "${mod_dir}/due.${mod_name}.sh" ]; then
+                                mod_file="${mod_dir}/due.${mod_name}.sh"
                                 break
                             fi
                         done

CVSTrac 2.0.1