summaryrefslogtreecommitdiff
path: root/lib/libalpm/server.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-01-30 08:14:10 +0000
committerAaron Griffin <aaron@archlinux.org>2007-01-30 08:14:10 +0000
commitda648bc24cebcf3fff9073693871183fd95d4c92 (patch)
tree3fbea3f6f396b981f7d4bd3958d0147025d4a191 /lib/libalpm/server.c
parent195e30e8aa1479bd10bb50de5bd34a69f0a09c9f (diff)
downloadpacman-da648bc24cebcf3fff9073693871183fd95d4c92.tar.xz
K. Piche <kevin.piche@cgi.com>
* ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere
Diffstat (limited to 'lib/libalpm/server.c')
-rw-r--r--lib/libalpm/server.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c
index bfff9fdf..f998b1e8 100644
--- a/lib/libalpm/server.c
+++ b/lib/libalpm/server.c
@@ -43,6 +43,8 @@ pmserver_t *_alpm_server_new(const char *url)
struct url *u;
pmserver_t *server;
+ ALPM_LOG_FUNC;
+
server = (pmserver_t *)malloc(sizeof(pmserver_t));
if(server == NULL) {
_alpm_log(PM_LOG_ERROR, _("malloc failure: could not allocate %d bytes"), sizeof(pmserver_t));
@@ -78,6 +80,8 @@ void _alpm_server_free(void *data)
{
pmserver_t *server = data;
+ ALPM_LOG_FUNC;
+
if(server == NULL) {
return;
}
@@ -96,6 +100,7 @@ void _alpm_server_free(void *data)
*/
int _alpm_downloadfiles(alpm_list_t *servers, const char *localpath, alpm_list_t *files)
{
+ ALPM_LOG_FUNC;
return(_alpm_downloadfiles_forreal(servers, localpath, files, NULL, NULL));
}
@@ -121,6 +126,8 @@ int _alpm_downloadfiles_forreal(alpm_list_t *servers, const char *localpath,
alpm_list_t *complete = NULL;
alpm_list_t *i;
+ ALPM_LOG_FUNC;
+
if(files == NULL) {
return(0);
}
@@ -324,6 +331,8 @@ char *_alpm_fetch_pkgurl(char *target)
struct stat st;
struct url *s_url;
+ ALPM_LOG_FUNC;
+
s_url = downloadParseURL(target);
if(!s_url) {
_alpm_log(PM_LOG_ERROR, _("url '%s' is invalid, ignoring"), target);