summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-01 04:31:46 +0100
committerAaron Griffin <aaron@archlinux.org>2007-02-01 04:31:46 +0100
commit616620ad5ca9607b854a66c854b9c71b700364e7 (patch)
tree8a0b8fed70244b3e04ce687ef6b467d5f846b57d /lib/libalpm
parent21e19a7bcffac1ae2ecddbf321ad752c4b0f6692 (diff)
downloadpacman-616620ad5ca9607b854a66c854b9c71b700364e7.tar.gz
pacman-616620ad5ca9607b854a66c854b9c71b700364e7.tar.xz
* Minor output fix (move colon so it's not part of the URL)
* Added ldconfig on --sync operations too
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/server.c2
-rw-r--r--lib/libalpm/sync.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c
index f998b1e8..947e5860 100644
--- a/lib/libalpm/server.c
+++ b/lib/libalpm/server.c
@@ -187,7 +187,7 @@ int _alpm_downloadfiles_forreal(alpm_list_t *servers, const char *localpath,
}
if(downloadLastErrCode != 0 || dlf == NULL) {
- _alpm_log(PM_LOG_ERROR, _("failed retrieving file '%s' from %s://%s: %s"), fn,
+ _alpm_log(PM_LOG_ERROR, _("failed retrieving file '%s' from %s://%s : %s"), fn,
server->s_url->scheme, server->s_url->host, downloadLastErrString);
if(localf != NULL) {
fclose(localf);
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 5e4d5f60..329353a1 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -1079,6 +1079,13 @@ int _alpm_sync_commit(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t **data)
unlink(i->data);
}
}
+
+ /* run ldconfig if it exists */
+ if(handle->trans->state != STATE_INTERRUPTED) {
+ _alpm_log(PM_LOG_DEBUG, _("running \"ldconfig -r %s\""), handle->root);
+ _alpm_ldconfig(handle->root);
+ }
+
return(0);
error: