Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-08-13 14:40:41 -0400
committerDan McGee <dan@archlinux.org>2011-08-15 07:06:23 -0500
commit20b5cc96be546db4e86b2216de3fccaeb7b2a4b2 (patch)
treec204a2a7428a042d219a6e2f0e5beca9313952e5 /lib/libalpm/package.c
parentea79de21d82369e799fcdc6e71b45d9580a75099 (diff)
pacman/package: show presence of signature in in -Si
adds a new API method: alpm_pkg_get_base64_sig [Dan: don't use a new header string in frontend] Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index 947f62e0..e5136c77 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -229,6 +229,13 @@ const char SYMEXPORT *alpm_pkg_get_md5sum(alpm_pkg_t *pkg)
return pkg->ops->get_md5sum(pkg);
}
+const char SYMEXPORT *alpm_pkg_get_base64_sig(alpm_pkg_t *pkg)
+{
+ ASSERT(pkg != NULL, return NULL);
+ pkg->handle->pm_errno = 0;
+ return pkg->base64_sig;
+}
+
const char SYMEXPORT *alpm_pkg_get_arch(alpm_pkg_t *pkg)
{
ASSERT(pkg != NULL, return NULL);