Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-28 12:48:37 -0500
committerDan McGee <dan@archlinux.org>2011-04-20 20:10:27 -0500
commit3c5661ec3cd5cdf2f1c3101d90789c83786a6897 (patch)
tree7f23826062a221b5a8d773ee3f47207a6de37339 /lib/libalpm/db.c
parent791928dc48bcd94ef5cb57b4da36fb5e398e30da (diff)
Form the signature file location in one place
Since we do this for all cases anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index cd741891..3808a275 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -322,21 +322,14 @@ const pmpgpsig_t *_alpm_db_pgpsig(pmdb_t *db)
ASSERT(db != NULL, return(NULL));
if(db->pgpsig.rawdata == NULL) {
- size_t len;
const char *dbfile;
- char *sigfile;
int ret;
dbfile = _alpm_db_path(db);
- len = strlen(dbfile) + 5;
- MALLOC(sigfile, len, RET_ERR(PM_ERR_MEMORY, NULL));
- sprintf(sigfile, "%s.sig", dbfile);
/* TODO: do something with ret value */
- ret = _alpm_load_signature(sigfile, &(db->pgpsig));
+ ret = _alpm_load_signature(dbfile, &(db->pgpsig));
(void)ret;
-
- FREE(sigfile);
}
return &(db->pgpsig);