diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-04-22 12:23:24 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-04-22 12:23:24 +0300 |
commit | e7b0d96900fb16a707776f95052f924fc4241c17 (patch) | |
tree | e38cb43a605d40939b91ba8726bbd661f7d075ea /lib/rpmts_internal.h | |
parent | 1f625e69e9609bedde9b071d87849ed518b43d22 (diff) | |
download | librpm-tizen-e7b0d96900fb16a707776f95052f924fc4241c17.tar.gz librpm-tizen-e7b0d96900fb16a707776f95052f924fc4241c17.tar.bz2 librpm-tizen-e7b0d96900fb16a707776f95052f924fc4241c17.zip |
Make transaction lock path per-transaction
- Although it doesn't really happen in practise, rpm's API permits several
transactions with possibly differing roots within process lifetime.
Previously the lock path was calculated just once globally so we could
easily be locking in a completely wrong place (eg locking in a previously
accessed chroot when system rpmdb should be transaction-locked)
Diffstat (limited to 'lib/rpmts_internal.h')
-rw-r--r-- | lib/rpmts_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rpmts_internal.h b/lib/rpmts_internal.h index c42e2a131..551cdd76b 100644 --- a/lib/rpmts_internal.h +++ b/lib/rpmts_internal.h @@ -52,6 +52,7 @@ struct rpmts_s { int chrootDone; /*!< Has chroot(2) been been done? */ char * rootDir; /*!< Path to top of install tree. */ char * currDir; /*!< Current working directory. */ + char * lockPath; /*!< Transaction lock path */ FD_t scriptFd; /*!< Scriptlet stdout/stderr. */ rpm_tid_t tid; /*!< Transaction id. */ |