diff options
author | bubulle@debian.org <> | 2007-04-21 22:21:43 +0200 |
---|---|---|
committer | bubulle@debian.org <> | 2007-04-21 22:21:43 +0200 |
commit | f6c03f1e14b0e37e8dd06c215b1ae6d5b0799c7b (patch) | |
tree | 559c186838d425e53a5b4c3fcbd2165bb4c6883f /apt-pkg/policy.cc | |
parent | 72c52e774bb0564302617b8aec2f6e24215fd31d (diff) | |
parent | bc50fc3013aa4454d10376888e4ccc24d35de334 (diff) |
Merge with Michael
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(); |