- install with FixBroken=true
// build regexp for the task
char S[300];
// build regexp for the task
char S[300];
- snprintf(S, sizeof(S), "^Task:.*%s.*\n", *I);
+ snprintf(S, sizeof(S), "^Task:.*[^a-z]%s[^a-z].*\n", *I);
regcomp(&Pattern,S, REG_EXTENDED | REG_NOSUB | REG_NEWLINE);
for (Pkg = Cache->PkgBegin(); Pkg.end() == false; Pkg++)
regcomp(&Pattern,S, REG_EXTENDED | REG_NOSUB | REG_NEWLINE);
for (Pkg = Cache->PkgBegin(); Pkg.end() == false; Pkg++)
buf[end-start] = 0x0;
if (regexec(&Pattern,buf,0,0,0) != 0)
continue;
buf[end-start] = 0x0;
if (regexec(&Pattern,buf,0,0,0) != 0)
continue;
- TryToInstall(Pkg,Cache,Fix,false,false,ExpectedInst);
+ TryToInstall(Pkg,Cache,Fix,false,true,ExpectedInst);
}
}
// Call the scored problem resolver
Fix.InstallProtect();
}
}
// Call the scored problem resolver
Fix.InstallProtect();
- if (Fix.Resolve(true) == false)
- _error->Discard();
// prompt for install
return InstallPackages(Cache,false,true);
// prompt for install
return InstallPackages(Cache,false,true);