summaryrefslogtreecommitdiff
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
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)
-rw-r--r--cmdline/apt-get.cc2
-rw-r--r--debian/changelog3
2 files changed, 4 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;
diff --git a/debian/changelog b/debian/changelog
index ea8113e95..6196e02ba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,9 @@ apt (0.7.3) unstable; urgency=low
Daniel Burrows, closes: #429378)
* fix FTFBFS by changing build-depends to
libcurl4-gnutls-dev (closes: #428363)
+ * cmdline/apt-get.cc:
+ - fix InstallTask code when a pkgRecord ends
+ with a single '\n' (thanks to Soren Hansen for reporting)
--