* cmdline/apt-get.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Wed, 27 Jun 2007 11:13:36 +0000 (13:13 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 27 Jun 2007 11:13:36 +0000 (13:13 +0200)
  - fix InstallTask code when a pkgRecord ends
    with a single '\n' (thanks to Soren Hansen for reporting)

cmdline/apt-get.cc
debian/changelog

index 554677f..7aea9ed 100644 (file)
@@ -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;
index ea8113e..6196e02 100644 (file)
@@ -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)
 
  --