added a missing code chunk of the ignore command line option (patch from VMiklos <vmiklos@frugalware.org>)
This commit is contained in:
parent
0c696200ae
commit
2c0530e634
1 changed files with 8 additions and 0 deletions
|
@ -63,6 +63,7 @@ int main(int argc, char *argv[])
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
char *cenv = NULL;
|
char *cenv = NULL;
|
||||||
uid_t myuid;
|
uid_t myuid;
|
||||||
|
list_t *lp;
|
||||||
|
|
||||||
#ifndef CYGWIN
|
#ifndef CYGWIN
|
||||||
/* debug */
|
/* debug */
|
||||||
|
@ -172,6 +173,13 @@ int main(int argc, char *argv[])
|
||||||
cleanup(1);
|
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) {
|
if(config->verbose > 1) {
|
||||||
printf("Root : %s\n", config->root);
|
printf("Root : %s\n", config->root);
|
||||||
printf("DBPath: %s\n", config->dbpath);
|
printf("DBPath: %s\n", config->dbpath);
|
||||||
|
|
Loading…
Add table
Reference in a new issue