diff options
author | Michael Vogt <egon@bottom> | 2007-05-02 13:54:10 +0200 |
---|---|---|
committer | Michael Vogt <egon@bottom> | 2007-05-02 13:54:10 +0200 |
commit | 8171c75b9939a13aa22a3f45d436a6305af561ff (patch) | |
tree | 2bd4f97cb013b56642a845873f54d49f94b92e51 /apt-pkg/policy.cc | |
parent | 3bc9f25de62f59cf5d4f90d1c1aaccc9ba23439b (diff) | |
parent | 3036f1e491ec1c71fb8fe9ff35954cebb2574320 (diff) |
* merged with the apt--mvo branch
Diffstat (limited to 'apt-pkg/policy.cc')
-rw-r--r-- | apt-pkg/policy.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index d8b8825c2..35a50425b 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -36,6 +36,7 @@ #include <apti18n.h> #include <iostream> +#include <sstream> /*}}}*/ using namespace std; @@ -300,7 +301,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(); |