index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Judd Vinet <judd@archlinux.org> | 2005-10-07 23:29:49 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-10-07 23:29:49 +0000 |
commit | 5ef51b3e266cf43411947248886372001fdb207a (patch) | |
tree | 8d255349530045686053faacd1804502a96b269c /lib/libalpm/handle.c | |
parent | 79031ccd1a544475162facb8ca3d671f3464d1f8 (diff) |
-rw-r--r-- | lib/libalpm/handle.c | 10 |
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index 6e855793..8567b87d 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -139,6 +139,15 @@ int handle_set_option(pmhandle_t *handle, unsigned char val, unsigned long data) _alpm_log(PM_LOG_FLOW2, "PM_OPT_NOUPGRADE flushed"); } break; + case PM_OPT_NOEXTRACT: + if((char *)data && strlen((char *)data) != 0) { + handle->noextract = pm_list_add(handle->noextract, strdup((char *)data)); + _alpm_log(PM_LOG_FLOW2, "'%s' added to PM_OPT_NOEXTRACT", (char *)data); + } else { + FREELIST(handle->noextract); + _alpm_log(PM_LOG_FLOW2, "PM_OPT_NOEXTRACT flushed"); + } + break; case PM_OPT_IGNOREPKG: if((char *)data && strlen((char *)data) != 0) { handle->ignorepkg = pm_list_add(handle->ignorepkg, strdup((char *)data)); @@ -189,6 +198,7 @@ int handle_get_option(pmhandle_t *handle, unsigned char val, long *data) case PM_OPT_SYNCDB: *data = (long)handle->dbs_sync; break; case PM_OPT_LOGFILE: *data = (long)handle->logfile; break; case PM_OPT_NOUPGRADE: *data = (long)handle->noupgrade; break; + case PM_OPT_NOEXTRACT: *data = (long)handle->noextract; break; case PM_OPT_IGNOREPKG: *data = (long)handle->ignorepkg; break; case PM_OPT_USESYSLOG: *data = handle->usesyslog; break; case PM_OPT_LOGCB: *data = (long)pm_logcb; break; |