index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2006-11-01 06:30:47 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-11-01 06:30:47 +0000 |
commit | 3bf918dc4ea14f1adb93c32aaa54118164b33dd1 (patch) | |
tree | 4054a42c20084109378e4512ea46e616096ab030 /lib/libalpm/be_files.c | |
parent | 48ee3c4434efad0796521384661dc405cdd3db66 (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 6f9b1088..35a1e981 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -193,6 +193,13 @@ int _alpm_db_read(pmdb_t *db, unsigned int inforeq, pmpkg_t *info) return(-1); } + if(info->origin == PKG_FROM_FILE) { + _alpm_log(PM_LOG_DEBUG, _("request to read database info for a file-based package '%s', skipping..."), info->name); + return(-1); + } + + _alpm_log(PM_LOG_FUNCTION, _("loading package data for %s : level=%d"), info->name, inforeq); + snprintf(path, PATH_MAX, "%s/%s-%s", db->path, info->name, info->version); if(stat(path, &buf)) { /* directory doesn't exist or can't be opened */ |