summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/deps.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-18 19:29:28 +0100
committerAaron Griffin <aaron@archlinux.org>2007-02-18 19:29:28 +0100
commitd35e489499daaa64958a3d46688ba746a337041b (patch)
tree38639093148a43cd94f826236404c923c64f1f4d /lib/libalpm/deps.c
parent6e9c987857030cbbe3e7e64fa963b579ecdde9c0 (diff)
downloadpacman-d35e489499daaa64958a3d46688ba746a337041b.tar.gz
pacman-d35e489499daaa64958a3d46688ba746a337041b.tar.xz
* Fix version comparisons when one pkgrel doesn't exist (this ony fails on an ==
operation, technically, as 1.1.2-1 >= 1.1.2 is true.
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r--lib/libalpm/deps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index ae378658..7065efa7 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -328,7 +328,7 @@ alpm_list_t *_alpm_checkdeps(pmtrans_t *trans, pmdb_t *db, pmtranstype_t op,
}
/* else if still not found... */
if(!found) {
- _alpm_log(PM_LOG_DEBUG, _("checkdeps: found %s as a dependency for %s"),
+ _alpm_log(PM_LOG_DEBUG, _("missing dependency '%s' for package '%s'"),
depend.name, tp->name);
miss = _alpm_depmiss_new(tp->name, PM_DEP_TYPE_DEPEND, depend.mod,
depend.name, depend.version);
@@ -397,8 +397,7 @@ alpm_list_t *_alpm_checkdeps(pmtrans_t *trans, pmdb_t *db, pmtranstype_t op,
int _alpm_splitdep(char *depstr, pmdepend_t *depend)
{
- char *str = NULL;
- char *ptr = NULL;
+ char *str = NULL, *ptr = NULL;
if(depstr == NULL || depend == NULL) {
return(-1);
@@ -432,6 +431,7 @@ int _alpm_splitdep(char *depstr, pmdepend_t *depend)
if(depend->mod != PM_DEP_MOD_EQ) {
ptr++;
}
+
STRNCPY(depend->version, ptr, PKG_VERSION_LEN);
FREE(str);