index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2009-11-13 16:42:42 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-12-13 23:18:58 -0600 |
commit | 444ff9564195223e31d445459009fceb2ae79002 (patch) | |
tree | 402e11b86a49c5c1a76afdb0459e50169b22406d /lib/libalpm/be_files.c | |
parent | e612eb6ba227104761b9c6fafe375c74267bba09 (diff) |
-rw-r--r-- | lib/libalpm/be_files.c | 7 |
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 90e97a55..f624d7cf 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -262,6 +262,13 @@ int _alpm_db_populate(pmdb_t *db) continue; } + /* duplicated database entries are not allowed */ + if(_alpm_pkg_find(db->pkgcache, pkg->name)) { + _alpm_log(PM_LOG_ERROR, _("duplicated database entry '%s'\n"), pkg->name); + _alpm_pkg_free(pkg); + continue; + } + /* explicitly read with only 'BASE' data, accessors will handle the rest */ if(_alpm_db_read(db, pkg, INFRQ_BASE) == -1) { _alpm_log(PM_LOG_ERROR, _("corrupted database entry '%s'\n"), name); |