summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-06-27 13:13:36 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-06-27 13:13:36 +0200
commitca0acc19704fa864d846d37cc45524e9d0af2295 (patch)
tree775bbff06633d532e8a382c9f55828228608b91b /cmdline/apt-get.cc
parentff6bf1be3844bcda15303efc81e234ede7501e3c (diff)
parent4948a1ba80f53e727efa22f09270a8d3ff69a610 (diff)
* cmdline/apt-get.cc:
- fix InstallTask code when a pkgRecord ends with a single '\n' (thanks to Soren Hansen for reporting)
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 554677f39..7aea9edb3 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1519,7 +1519,7 @@ 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);
+ snprintf(S, sizeof(S), "^Task:.*[^a-z\n]%s[^a-z].*$", taskname);
regcomp(&Pattern,S, REG_EXTENDED | REG_NOSUB | REG_NEWLINE);
bool found = false;