index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-16 20:09:10 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-16 20:09:10 +0000 |
commit | 7c04b050ea6d194392b82165ce08e89e97e4127c (patch) | |
tree | 906328c9c016e41da6978c9609cb00cb2df7172c /lib/libalpm/add.c | |
parent | b0f613c2115f00129d4bdeaa705a0964e53b29b2 (diff) |
-rw-r--r-- | lib/libalpm/add.c | 4 |
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 325dbc86..d6e4d9d8 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -561,10 +561,10 @@ int add_commit(pmdb_t *db, pmtrans_t *trans) _alpm_runscriptlet(handle->root, pm_install, "post_install", info->version, NULL); } - if(pmo_upgrade && oldpkg) { + if(pmo_upgrade) { TRANS_CB(trans, PM_TRANS_EVT_UPGRADE_DONE, info, NULL); alpm_logaction("upgraded %s (%s -> %s)", info->name, - oldpkg->version, info->version); + oldpkg ? oldpkg->version : NULL, info->version); } else { TRANS_CB(trans, PM_TRANS_EVT_ADD_DONE, info, NULL); alpm_logaction("installed %s (%s)", info->name, info->version); |