Print error on duplicated database entries
commit444ff9564195223e31d445459009fceb2ae79002
authorNagy Gabor <ngaba@bibl.u-szeged.hu>
Fri, 13 Nov 2009 15:42:42 +0000 (13 16:42 +0100)
committerDan McGee <dan@archlinux.org>
Mon, 14 Dec 2009 05:18:58 +0000 (13 23:18 -0600)
tree402e11b86a49c5c1a76afdb0459e50169b22406d
parente612eb6ba227104761b9c6fafe375c74267bba09
Print error on duplicated database entries

Some users reported duplicated database entries in /var/lib/pacman/local/,
for example, both foo-1.0-1 and foo-2.0-1 subdirectories existed. (Bogus
3rd-party scripts, backup?) In this case pacman reported no error and its
behaviour was mysterious.

From now on, pacman detects this situation and prints an error message.

Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/be_files.c