summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-05-02 13:40:45 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-05-02 13:40:45 +0200
commit66c8f0766ef9f2d660251ece524fcb82d5ea3813 (patch)
tree561f837db522d16779fd1201cdc0719345671911 /apt-pkg
parenteaa204a9808eb2392f4a03d703b585ba3aa3b018 (diff)
parent3036f1e491ec1c71fb8fe9ff35954cebb2574320 (diff)
* apt-pkg/acquire.{cc,h}:
* Fix broken use of awk in apt-key that caused removal of the wrong keys from the keyring. Closes: #412572 * merged from Christian Perrier: * mr.po: New Marathi translation Closes: #416806 * zh_CN.po: Updated by Eric Pareja Closes: #416822 * tl.po: Updated by Eric Pareja Closes: #416638 * gl.po: Updated by Jacobo Tarrio Closes: #412828 * da.po: Updated by Claus Hindsgaul Closes: #409483 * fr.po: Remove a non-breakable space for usability issues. Closes: #408877 * ru.po: Updated Russian translation. Closes: #405476 * *.po: Unfuzzy after upstream typo corrections * apt-pkg/policy.cc: - allow multiple packages (thanks to David Foerster) * NMU * Fix broken use of awk in apt-key that caused removal of the wrong keys from the keyring. Closes: #412572
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/policy.cc9
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();