summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-12-31 17:58:22 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-12-31 17:58:22 +0000
commit2c0530e634f0f184baff6ab087ec044397f46eee (patch)
treeb2f89cf5c20ba1f4fbffc6f56d13b04a70926095
parent0c696200ae05745dafba0c60f6aea3d107f06949 (diff)
downloadpacman-2c0530e634f0f184baff6ab087ec044397f46eee.tar.xz
added a missing code chunk of the ignore command line option (patch from VMiklos <vmiklos@frugalware.org>)
-rw-r--r--src/pacman/pacman.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 3f085a8b..3264a719 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -63,6 +63,7 @@ int main(int argc, char *argv[])
int ret = 0;
char *cenv = NULL;
uid_t myuid;
+ list_t *lp;
#ifndef CYGWIN
/* debug */
@@ -171,6 +172,13 @@ int main(int argc, char *argv[])
ERR(NL, "failed to set option CACHEDIR (%s)\n", alpm_strerror(pm_errno));
cleanup(1);
}
+
+ for(lp = config->op_s_ignore; lp; lp = lp->next) {
+ if(alpm_set_option(PM_OPT_IGNOREPKG, (long)lp->data) == -1) {
+ ERR(NL, "failed to set option IGNOREPKG (%s)\n", alpm_strerror(pm_errno));
+ cleanup(1);
+ }
+ }
if(config->verbose > 1) {
printf("Root : %s\n", config->root);