-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,


On Wed, 1 Nov 2006, Loïc Minier wrote:
This is a followup for Debian bug <http://bugs.debian.org/359161>.

On Mon, Mar 27, 2006, Taco IJsselmuiden wrote:
When trying to install a rpm-database in some dir using rpm --root, the
wrong dbpath is used for locking the transaction, which of course makes
the whole transaction fail.
This is shown when trying the following as a non-root user:
[EMAIL PROTECTED]:~/bla$ mkdir -p root-dir/var/lib/rpm
[EMAIL PROTECTED]:~/bla$ rpm --root `pwd`/root-dir --initdb
error: can't create transaction lock on /var/lib/rpm/__db.000
[EMAIL PROTECTED]:~/bla$ find root-dir

I think you want to pass --dbpath as well.  Can you confirm this solves
your issue?

using --dbpath does solve my issue. However, the manual says that using - --root uses 'the file system tree rooted at DIRECTORY for all operations', which indicates that the directory inside the specified directory would be used, which isn't what's happening.


Cheers,
Taco.
- --
If I'm not here, it means I've gone out to find myself.
If I get back before I return, please keep me here.
- --
GPG KeyID=0x9DD13814
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFFabIK6WlwGJ3ROBQRAuz/AKCCQ0NaTtntB1fYw9j59U1m2SnyNQCeLvVn
wMQ93bYEOLFtzblcJg4SogY=
=FTGd
-----END PGP SIGNATURE-----

Reply via email to