Просмотр исходного кода

* apt-pkg/deb/deblistparser.cc:
- Handle no space before "[" in build-dependencies (LP: #72344)

Julian Andres Klode лет назад: 15
Родитель
Сommit
90cf90b254
2 измененных файлов с 3 добавлено и 1 удалено
  1. 1 1
      apt-pkg/deb/deblistparser.cc
  2. 2 0
      debian/changelog

+ 1 - 1
apt-pkg/deb/deblistparser.cc

@@ -487,7 +487,7 @@ const char *debListParser::ParseDepends(const char *Start,const char *Stop,
    // Parse off the package name
    const char *I = Start;
    for (;I != Stop && isspace(*I) == 0 && *I != '(' && *I != ')' &&
-	*I != ',' && *I != '|'; I++);
+	*I != ',' && *I != '|' && *I != '[' && *I != ']'; I++);
    
    // Malformed, no '('
    if (I != Stop && *I == ')')

+ 2 - 0
debian/changelog

@@ -8,6 +8,8 @@ apt (0.8.13.3) UNRELEASED; urgency=low
     - Use Release files even if they cannot be verified (LP: #704595)
   * cmdline/apt-get.cc:
     - Do not install recommends for build-dep (Closes: #454479) (LP: #245273)
+  * apt-pkg/deb/deblistparser.cc:
+    - Handle no space before "[" in build-dependencies (LP: #72344)
   
   [ Michael Vogt ]
   * mirror method: