ソースを参照

Try to fix absolute dist directory parsing

Ralf S. Engelschall 22 年 前
コミット
4ea32ea87a
1 ファイル変更11 行追加0 行削除
  1. 11 0
      apt/apt.patch

+ 11 - 0
apt/apt.patch

@@ -504,3 +504,14 @@
     
     if (srcListAppend == true && FileExists(buf)) {
        outfd = fdOpen(buf, O_WRONLY|O_APPEND, 0644);
+--- apt-pkg/sourcelist.cc.orig	2003-09-16 12:02:35.000000000 +0200
++++ apt-pkg/sourcelist.cc	2003-09-16 12:05:04.000000000 +0200
+@@ -102,7 +102,7 @@
+    // Check for an absolute dists specification.
+    if (Dist.empty() == false && Dist[Dist.size() - 1] == '/')
+    {
+-      if (ParseQuoteWord(Buffer,Section) == true)
++      if (ParseQuoteWord(Buffer,Section) == false)
+ 	 return _error->Error(_("Malformed line %lu in source list %s (Absolute dist)"),CurLine,File.c_str());
+       Dist = SubstVar(Dist,"$(ARCH)",_config->Find("APT::Architecture"));
+       return CreateItem(List,URI,Dist,Section,Vendor);