summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-11-24 08:01:27 +0100
committerAaron Griffin <aaron@archlinux.org>2006-11-24 08:01:27 +0100
commit9918d43ab9595449d8364fc75a6368c8d8cd0034 (patch)
tree4efb147940d16a9b34adca14c9d5c420a8222ddd /lib
parent12fdce244c49133e9fce9e7356e78570dd1b4a1e (diff)
downloadpacman-9918d43ab9595449d8364fc75a6368c8d8cd0034.tar.gz
pacman-9918d43ab9595449d8364fc75a6368c8d8cd0034.tar.xz
* Fixed some error output for "-Sd" and "-Rsc" dealing with missing/ignored
depends * Added valgrind suppression file
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/add.c4
-rw-r--r--lib/libalpm/deps.c3
-rw-r--r--lib/libalpm/remove.c4
-rw-r--r--lib/libalpm/sync.c5
4 files changed, 9 insertions, 7 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 4ccac537..2c33947b 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -789,8 +789,8 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db)
FREELISTPTR(provides);
}
if(depinfo == NULL) {
- _alpm_log(PM_LOG_ERROR, _("could not find dependency '%s'"), depend.name);
- /* wtf */
+ /* We'll let the front end deal with this case... it may be intentional */
+ _alpm_log(PM_LOG_DEBUG, _("could not find dependency '%s'"), depend.name);
continue;
}
}
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index 9cab8489..97c527ab 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -441,7 +441,8 @@ pmlist_t *_alpm_removedeps(pmdb_t *db, pmlist_t *targs)
/* package not found... look for a provisio instead */
k = _alpm_db_whatprovides(db, depend.name);
if(k == NULL) {
- _alpm_log(PM_LOG_WARNING, _("cannot find package \"%s\" or anything that provides it!"), depend.name);
+ /* Not found, that's fine, carry on */
+ _alpm_log(PM_LOG_DEBUG, _("cannot find package \"%s\" or anything that provides it!"), depend.name);
continue;
}
dep = _alpm_db_get_pkgfromcache(db, ((pmpkg_t *)k->data)->name);
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index 5659e1e9..6fce2d35 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -319,8 +319,8 @@ int _alpm_remove_commit(pmtrans_t *trans, pmdb_t *db)
FREELISTPTR(provides);
}
if(depinfo == NULL) {
- _alpm_log(PM_LOG_ERROR, _("could not find dependency '%s'"), depend.name);
- /* wtf */
+ /* dep not installed... that's fine, carry on */
+ _alpm_log(PM_LOG_DEBUG, _("could not find dependency '%s' for removal"), depend.name);
continue;
}
}
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 7c251790..470216cb 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -215,8 +215,9 @@ int _alpm_sync_sysupgrade(pmtrans_t *trans, pmdb_t *db_local, pmlist_t *dbs_sync
cmp = _alpm_versioncmp(local->version, spkg->version);
if(cmp > 0 && !spkg->force) {
/* local version is newer */
- _alpm_log(PM_LOG_WARNING, _("%s-%s: local version is newer"),
- local->name, local->version);
+ pmdb_t *db = spkg->data;
+ _alpm_log(PM_LOG_WARNING, _("%s: local (%s) is newer than %s (%s)"),
+ local->name, local->version, db->treename, spkg->version);
} else if(cmp == 0) {
/* versions are identical */
} else if(_alpm_list_is_strin(i->data, handle->ignorepkg)) {