index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-06-15 12:02:29 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-15 12:02:29 -0500 |
commit | 1cd6515af0ae5d1c3dabd30749a37cfefa7dc4f5 (patch) | |
tree | 78ce0656e9200a255537a3c821716e9c90583ac9 /lib/libalpm/handle.c | |
parent | d21f6ca4aa3209938fa312f29ac03446f57e6a66 (diff) |
-rw-r--r-- | lib/libalpm/handle.c | 18 |
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index d2bb4f61..a516003d 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -77,7 +77,7 @@ void _alpm_handle_free(pmhandle_t *handle) FREE(handle->logfile); FREE(handle->lockfile); FREE(handle->arch); - FREE(handle->signaturedir); + FREE(handle->gpgdir); FREELIST(handle->dbs_sync); FREELIST(handle->noupgrade); FREELIST(handle->noextract); @@ -140,10 +140,10 @@ const char SYMEXPORT *alpm_option_get_lockfile(pmhandle_t *handle) return handle->lockfile; } -const char SYMEXPORT *alpm_option_get_signaturedir(pmhandle_t *handle) +const char SYMEXPORT *alpm_option_get_gpgdir(pmhandle_t *handle) { CHECK_HANDLE(handle, return NULL); - return handle->signaturedir; + return handle->gpgdir; } int SYMEXPORT alpm_option_get_usesyslog(pmhandle_t *handle) @@ -362,20 +362,20 @@ int SYMEXPORT alpm_option_set_logfile(pmhandle_t *handle, const char *logfile) return 0; } -int SYMEXPORT alpm_option_set_signaturedir(pmhandle_t *handle, const char *signaturedir) +int SYMEXPORT alpm_option_set_gpgdir(pmhandle_t *handle, const char *gpgdir) { CHECK_HANDLE(handle, return -1); - if(!signaturedir) { + if(!gpgdir) { handle->pm_errno = PM_ERR_WRONG_ARGS; return -1; } - if(handle->signaturedir) { - FREE(handle->signaturedir); + if(handle->gpgdir) { + FREE(handle->gpgdir); } - handle->signaturedir = strdup(signaturedir); + handle->gpgdir = strdup(gpgdir); - _alpm_log(handle, PM_LOG_DEBUG, "option 'signaturedir' = %s\n", handle->signaturedir); + _alpm_log(handle, PM_LOG_DEBUG, "option 'gpgdir' = %s\n", handle->gpgdir); return 0; } |