diff options
author | Dan McGee <dan@archlinux.org> | 2012-02-20 06:24:26 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-20 06:24:26 +0100 |
commit | fe659153d5971e41b7483bb40c31cd40f58f9d9c (patch) | |
tree | ac5adaff9ed0542e28acab67f9c95da9984dd889 /proto/PKGBUILD-split.proto | |
parent | 4899b5bd864919830fe4ce5786d37a00ab5a0da3 (diff) | |
download | pacman-fe659153d5971e41b7483bb40c31cd40f58f9d9c.tar.gz pacman-fe659153d5971e41b7483bb40c31cd40f58f9d9c.tar.xz |
Give better error messages on database locking failures
This was noted when trying to perform an operation on a pacman database
on a read-only file system. Print the actual underlying errno string,
and only show the "you can remove" message if the lock file actually
exists.
Before:
$ pacman -Su
error: failed to init transaction (unable to lock database)
if you're sure a package manager is not already
running, you can remove /e/db.lck
After:
$ pacman -Su
error: failed to init transaction (unable to lock database)
error: could not lock database: Read-only file system
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'proto/PKGBUILD-split.proto')
0 files changed, 0 insertions, 0 deletions