]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/policy.cc
* merged the remaining bits from the apt--no-pragma branch
[apt.git] / apt-pkg / policy.cc
index 795f1d7878822cdc0f3c132cfe7e0197e6fcd661..8b083fd444aa80e8d8b9c4314a12a7802c879470 100644 (file)
@@ -33,6 +33,7 @@
 #include <apti18n.h>
 
 #include <iostream>
+#include <sstream>
                                                                        /*}}}*/
 
 using namespace std;
@@ -297,7 +298,13 @@ bool ReadPinFile(pkgPolicy &Plcy,string File)
          continue;
       }
 
-      Plcy.CreatePin(Type,Name,string(Word,End),priority);
+      istringstream s(Name);
+      string pkg;
+      while(!s.eof())
+      {
+        s >> pkg;
+         Plcy.CreatePin(Type, pkg, string(Word,End),priority);
+      };
    }
 
    Plcy.InitDefaults();