Changeset 373 for trunk/confmanlib.sh.in
- Timestamp:
- 07/02/2009 14:10:41 (3 years ago)
- File:
-
- 1 edited
-
trunk/confmanlib.sh.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confmanlib.sh.in
r365 r373 29 29 REPO_ACTION="${REPO_DB}/last_action" 30 30 REPO_SYNC_STATE="${REPO_DB}/state" 31 WCLOCKFILE="${WORK_PATH}/confman.lock"32 31 METADIR="${WORK_PATH}/meta" 33 32 RECIPEDIR="${METADIR}/recipes" … … 85 84 86 85 # Functions for locking and unlocking both the system and the working copy 86 function conf_wcopy_lockfile { 87 echo "${WORK_PATH}/confman.lock" 88 } 89 87 90 function conf_lock_wcopy { 88 ${LOCK} lock $$ "$WCLOCKFILE"|| exit 191 ${LOCK} lock $$ $(conf_wcopy_lockfile) || exit 1 89 92 } 90 93 91 94 function conf_unlock_wcopy { 92 ${LOCK} unlock $$ "$WCLOCKFILE"95 ${LOCK} unlock $$ $(conf_wcopy_lockfile) 93 96 } 94 97 95 98 function conf_wcopy_is_locked { 96 ${LOCK} haslock $$ "$WCLOCKFILE"99 ${LOCK} haslock $$ $(conf_wcopy_lockfile) 97 100 } 98 101
Note: See TracChangeset
for help on using the changeset viewer.
