summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-06-27 13:34:34 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-06-27 13:34:34 +0200
commit541c83b92a4919ba0aed6150f71e227d07f93a02 (patch)
tree8a81952abc540e5d5a787f77f6d5ed32226abc80 /cmdline
parent9e830fd5e9c71c384275f0c63dfe80595723d614 (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')
-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 51bcfde12..974427f51 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]%s[^a-z].*$", taskname);
regcomp(&Pattern,S, REG_EXTENDED | REG_NOSUB | REG_NEWLINE);
bool found = false;