Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-06 14:00:03 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-06 14:00:03 +0000
commit2c22045ba85778dcdcedeee9ab11b8631c007cc5 (patch)
tree6d6fb84345f23686b826cba8031e46f475325deb /lib/libalpm/alpm.c
parent4585060a5a47e77ffb4bffef110b16505921a75d (diff)
- fixed a regression with pacman 2.x (reworked patch from VMiklos <vmiklos@frugalware.org>):
if pacman is desiganted as a target in a sysupgrade operation, it should be able to upgrade itself first upon user request. - removed uneeded sanity checks in alpm interface calls - replaced printf by MSG in pacman
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 833737f4..7dca7ffd 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -719,8 +719,6 @@ int alpm_logaction(char *fmt, ...)
PMList *alpm_list_first(PMList *list)
{
- ASSERT(list != NULL, return(NULL));
-
return(list);
}
@@ -740,10 +738,17 @@ void *alpm_list_getdata(PMList *entry)
int alpm_list_free(PMList *entry)
{
+ ASSERT(entry != NULL, return(-1));
+
FREELIST(entry);
return(0);
}
+
+int alpm_list_count(PMList *list)
+{
+ return(_alpm_list_count(list));
+}
/** @} */
/** @defgroup alpm_misc Miscellaneous Functions