summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/server.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-06-05 05:32:38 +0200
committerDan McGee <dan@archlinux.org>2007-06-05 05:32:38 +0200
commit26e3db423abeb4cb5704f89dc0fc50a767f19b47 (patch)
treed6574466cb8846d162719a49dc38df8f59acbca4 /lib/libalpm/server.c
parent466b79bf8f9a9b3f37a1a754b40320df9f2f1b4e (diff)
parent64d36db5f45db15997c6a3987d6f4b0ce147df27 (diff)
downloadpacman-26e3db423abeb4cb5704f89dc0fc50a767f19b47.tar.gz
pacman-26e3db423abeb4cb5704f89dc0fc50a767f19b47.tar.xz
Merge branch 'alpm.c_cleanup' into frontend_config
Conflicts: lib/libalpm/alpm.c
Diffstat (limited to 'lib/libalpm/server.c')
-rw-r--r--lib/libalpm/server.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c
index af8f5fd7..c36f9ba8 100644
--- a/lib/libalpm/server.c
+++ b/lib/libalpm/server.c
@@ -42,6 +42,20 @@
#include "log.h"
#include "package.h"
+/** Fetch a remote pkg.
+ * @param url
+ * @return the downloaded filename on success, NULL on error
+ * @addtogroup alpm_misc
+ */
+char SYMEXPORT *alpm_fetch_pkgurl(char *url)
+{
+ ALPM_LOG_FUNC;
+
+ ASSERT(strstr(url, "://"), return(NULL));
+
+ return(_alpm_fetch_pkgurl(url));
+}
+
pmserver_t *_alpm_server_new(const char *url)
{
struct url *u;