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