Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/be_package.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-21 19:01:06 -0500
committerDan McGee <dan@archlinux.org>2011-04-24 10:48:33 -0500
commit31e55b8049ed001a993441f3efc8ffebdf360061 (patch)
treeef01f59eed8cdbf5d5e9f76c1500b9ef30ed67e9 /lib/libalpm/be_package.c
parenta7d33d0c36420462b3de5c7e2f8327ddbda2a129 (diff)
signing: let GPGME handle loading signatures from files
Rather than go through all the hassle of doing this ourselves, just let GPGME handle the work by passing it a file handle. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_package.c')
-rw-r--r--lib/libalpm/be_package.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c
index 8a6ed6c4..6e65c7dd 100644
--- a/lib/libalpm/be_package.c
+++ b/lib/libalpm/be_package.c
@@ -243,18 +243,12 @@ static pmpkg_t *pkg_load(const char *pkgfile, int full)
/* attempt to stat the package file, ensure it exists */
if(stat(pkgfile, &st) == 0) {
- int sig_ret;
-
newpkg = _alpm_pkg_new();
if(newpkg == NULL) {
RET_ERR(PM_ERR_MEMORY, NULL);
}
newpkg->filename = strdup(pkgfile);
newpkg->size = st.st_size;
-
- /* TODO: do something with ret value */
- sig_ret = _alpm_load_signature(pkgfile, &(newpkg->pgpsig));
- (void)sig_ret;
} else {
/* couldn't stat the pkgfile, return an error */
RET_ERR(PM_ERR_PKG_OPEN, NULL);