Changeset 516
- Timestamp:
- 05/12/2011 17:31:18 (13 months ago)
- Location:
- branches/confman-1.9
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
confexport.in (modified) (3 diffs)
-
confman.conf.in (modified) (1 diff)
-
confmanlib.sh.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/confman-1.9
-
branches/confman-1.9/confexport.in
r459 r516 40 40 fi 41 41 42 # This potentially changes the behavior for selecting the REPO_URI42 # This changes the behavior of some library functions (e.g. URIs, locks) 43 43 CONF_EXPORT="true" 44 44 … … 64 64 exec 1>/dev/null 65 65 fi 66 67 confexport_lock_system 66 68 67 69 umask 077 … … 102 104 fi 103 105 106 confexport_unlock_system "${system_lock}" 107 104 108 echo "Export complete." | conf_logger 105 109 106 110 conf_cleanExit 0 107 -
branches/confman-1.9/confman.conf.in
r481 r516 21 21 # The system lockfile 22 22 LOCKFILE="@localstaterundir@/confman.lock" 23 24 # The system lockfile for confexport 25 CONFEXPORT_LOCKFILE="@localstaterundir@/confexport.lock" 23 26 24 27 # The script for locking -
branches/confman-1.9/confmanlib.sh.in
r514 r516 209 209 ;; 210 210 esac 211 } 212 213 function confexport_lock_system { 214 "${LOCK}" lock $$ "${CONFEXPORT_LOCKFILE}" || die 215 } 216 217 function confexport_unlock_system { 218 "${LOCK}" unlock $$ "${CONFEXPORT_LOCKFILE}" 219 } 220 221 function confexport_system_is_locked { 222 "${LOCK}" haslock $$ "${CONFEXPORT_LOCKFILE}" 211 223 } 212 224 … … 1148 1160 1149 1161 conf_debug "Removing any system or working copy locks..." >&4 1150 conf_wcopy_is_locked && conf_unlock_wcopy ORIGINAL 1151 conf_system_is_locked && conf_unlock_system ORIGINAL 1162 if ${CONF_EXPORT}; then 1163 confexport_system_is_locked && confexport_unlock_system 1164 else 1165 conf_wcopy_is_locked && conf_unlock_wcopy ORIGINAL 1166 conf_system_is_locked && conf_unlock_system ORIGINAL 1167 fi 1152 1168 1153 1169 # And this clears any locks we may have created on our working copy:
Note: See TracChangeset
for help on using the changeset viewer.
