Ticket #35 (closed defect: fixed)
WORK_PATH cannot be modified after confmanlib.sh is loaded
| Reported by: | blee | Owned by: | blee |
|---|---|---|---|
| Priority: | blocker | Milestone: | confman-2.0 |
| Component: | confsync | Version: | 1.9.0b |
| Keywords: | Cc: |
Description
confmanlib.sh sets some variables based on the value of WORK_PATH:
WCLOCKFILE="${WORK_PATH}/confman.lock"
METADIR="${WORK_PATH}/meta"
confsync modifies WORK_PATH to be a temporary directory:
tmpdir=$(conf_tmp_dir) tar -xzf $tarball -C $tmpdir rm -rf $tarball WORK_PATH="$tmpdir"
and the change is not seen by other variables that have already been set relative to the old value of WORK_PATH. This breaks confsync severely when $HOME/src/conf does not exist, or worse $HOME/src/conf is out of sync relative to the export tarball.
The way global variables are set will probably have to be redesigned.
Change History
Note: See
TracTickets for help on using
tickets.
