* cmdline/apt-get.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Wed, 27 Jun 2007 12:35:44 +0000 (14:35 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 27 Jun 2007 12:35:44 +0000 (14:35 +0200)
  - improve taskinstall regexp

cmdline/apt-get.cc

index 7aea9ed..aa54677 100644 (file)
@@ -1519,7 +1519,8 @@ bool TryInstallTask(pkgDepCache &Cache, pkgProblemResolver &Fix,
 
    // build regexp for the task
    char S[300];
-   snprintf(S, sizeof(S), "^Task:.*[^a-z\n]%s[^a-z].*$", taskname);
+   // better: "^Task:.*[^a-z]lamp-server([^a-z]|\n)" ?
+   snprintf(S, sizeof(S), "^Task:.*[^a-z]%s[^a-z].*$", taskname);
    regcomp(&Pattern,S, REG_EXTENDED | REG_NOSUB | REG_NEWLINE);
    
    bool found = false;