Przeglądaj źródła

* cmdline/apt-get.cc:
- fix InstallTask code when a pkgRecord ends
with a single '\n' (thanks to Soren Hansen for reporting)

Michael Vogt 19 lat temu
rodzic
commit
541c83b92a
2 zmienionych plików z 9 dodań i 1 usunięć
  1. 1 1
      cmdline/apt-get.cc
  2. 8 0
      debian/changelog

+ 1 - 1
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;

+ 8 - 0
debian/changelog

@@ -1,3 +1,11 @@
+apt (0.7.2ubuntu3) gutsy; urgency=low
+
+  * cmdline/apt-get.cc:
+    - fix InstallTask code when a pkgRecord ends 
+      with a single '\n' (thanks to Soren Hansen for reporting)
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Wed, 27 Jun 2007 13:33:38 +0200
+
 apt (0.7.2ubuntu2) gutsy; urgency=low
 
   * fixed compile errors with g++ 7.3 (thanks to