HCoop
/
ntk
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3b12df
)
* cmdline/apt-get.cc:
author
Michael Vogt
<michael.vogt@ubuntu.com>
Wed, 27 Jun 2007 12:35:44 +0000
(14:35 +0200)
committer
Michael Vogt
<michael.vogt@ubuntu.com>
Wed, 27 Jun 2007 12:35:44 +0000
(14:35 +0200)
- improve taskinstall regexp
cmdline/apt-get.cc
patch
|
blob
|
blame
|
history
diff --git
a/cmdline/apt-get.cc
b/cmdline/apt-get.cc
index
7aea9ed
..
aa54677
100644
(file)
--- 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\n]%s[^a-z].*$", 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;