]>
git.saurik.com Git - apt.git/blob - apt-pkg/vendor.cc
3 #include <apt-pkg/vendor.h>
4 #include <apt-pkg/configuration.h>
12 Vendor::Vendor(std::string VendorID
,
14 std::vector
<struct Vendor::Fingerprint
*> *FingerprintList
)
16 this->VendorID
= VendorID
;
17 this->Origin
= Origin
;
18 for (std::vector
<struct Vendor::Fingerprint
*>::iterator I
= FingerprintList
->begin();
19 I
!= FingerprintList
->end(); ++I
)
21 if (_config
->FindB("Debug::Vendor", false))
22 std::cerr
<< "Vendor \"" << VendorID
<< "\": Mapping \""
23 << (*I
)->Print
<< "\" to \"" << (*I
)->Description
<< '"' << std::endl
;
24 Fingerprints
[(*I
)->Print
] = (*I
)->Description
;
26 delete FingerprintList
;
29 const std::string
Vendor::LookupFingerprint(std::string Print
) const
31 std::map
<std::string
,std::string
>::const_iterator Elt
= Fingerprints
.find(Print
);
32 if (Elt
== Fingerprints
.end())
38 APT_CONST
bool Vendor::CheckDist(std::string
/*Dist*/)