]>
git.saurik.com Git - apt.git/blob - apt-pkg/vendor.cc
4 #include <apt-pkg/error.h>
5 #include <apt-pkg/vendor.h>
6 #include <apt-pkg/configuration.h>
8 Vendor::Vendor(std::string VendorID
,
10 std::vector
<struct Vendor::Fingerprint
*> *FingerprintList
)
12 this->VendorID
= VendorID
;
13 this->Origin
= Origin
;
14 for (std::vector
<struct Vendor::Fingerprint
*>::iterator I
= FingerprintList
->begin();
15 I
!= FingerprintList
->end(); ++I
)
17 if (_config
->FindB("Debug::Vendor", false))
18 std::cerr
<< "Vendor \"" << VendorID
<< "\": Mapping \""
19 << (*I
)->Print
<< "\" to \"" << (*I
)->Description
<< '"' << std::endl
;
20 Fingerprints
[(*I
)->Print
] = (*I
)->Description
;
22 delete FingerprintList
;
25 const std::string
Vendor::LookupFingerprint(std::string Print
) const
27 std::map
<std::string
,std::string
>::const_iterator Elt
= Fingerprints
.find(Print
);
28 if (Elt
== Fingerprints
.end())
34 bool Vendor::CheckDist(std::string Dist
)