summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorbubulle@debian.org <>2007-07-06 07:18:13 +0200
committerbubulle@debian.org <>2007-07-06 07:18:13 +0200
commitbb454321179ba5cca89e9250ccf2aafa4364e343 (patch)
tree11ca9f01224a55e69f8401ee45f9cf187d041d73 /cmdline
parentc0681fb7e34114df9a562577d3a505402ae17e57 (diff)
parent6724d2173133f24bc8a3875c13513761f9340627 (diff)
Sync with Michael
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 554677f39..aa54677be 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1519,7 +1519,8 @@ bool TryInstallTask(pkgDepCache &Cache, pkgProblemResolver &Fix,
// build regexp for the task
char S[300];
- snprintf(S, sizeof(S), "^Task:.*[^a-z]%s[^a-z].*\n", taskname);
+ // better: "^Task:.*[^a-z]lamp-server([^a-z]|\n)" ?
+ snprintf(S, sizeof(S), "^Task:.*[^a-z]%s[^a-z].*$", taskname);
regcomp(&Pattern,S, REG_EXTENDED | REG_NOSUB | REG_NEWLINE);
bool found = false;