You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

609 lines
19 KiB

  1. #include <config.h>
  2. #include <apt-pkg/error.h>
  3. #include <apt-pkg/debmetaindex.h>
  4. #include <apt-pkg/debindexfile.h>
  5. #include <apt-pkg/strutl.h>
  6. #include <apt-pkg/fileutl.h>
  7. #include <apt-pkg/acquire-item.h>
  8. #include <apt-pkg/configuration.h>
  9. #include <apt-pkg/aptconfiguration.h>
  10. #include <apt-pkg/indexrecords.h>
  11. #include <apt-pkg/sourcelist.h>
  12. #include <apt-pkg/hashes.h>
  13. #include <apt-pkg/metaindex.h>
  14. #include <apt-pkg/pkgcachegen.h>
  15. #include <apt-pkg/tagfile.h>
  16. #include <apt-pkg/gpgv.h>
  17. #include <apt-pkg/macros.h>
  18. #include <map>
  19. #include <string>
  20. #include <utility>
  21. #include <vector>
  22. #include <set>
  23. #include <algorithm>
  24. #include <sys/types.h>
  25. #include <sys/stat.h>
  26. #include <unistd.h>
  27. #include <string.h>
  28. using namespace std;
  29. string debReleaseIndex::MetaIndexInfo(const char *Type) const
  30. {
  31. string Info = ::URI::ArchiveOnly(URI) + ' ';
  32. if (Dist[Dist.size() - 1] == '/')
  33. {
  34. if (Dist != "/")
  35. Info += Dist;
  36. }
  37. else
  38. Info += Dist;
  39. Info += " ";
  40. Info += Type;
  41. return Info;
  42. }
  43. std::string debReleaseIndex::Describe() const
  44. {
  45. return MetaIndexInfo("Release");
  46. }
  47. string debReleaseIndex::MetaIndexFile(const char *Type) const
  48. {
  49. return _config->FindDir("Dir::State::lists") +
  50. URItoFileName(MetaIndexURI(Type));
  51. }
  52. string debReleaseIndex::MetaIndexURI(const char *Type) const
  53. {
  54. string Res;
  55. if (Dist == "/")
  56. Res = URI;
  57. else if (Dist[Dist.size()-1] == '/')
  58. Res = URI + Dist;
  59. else
  60. Res = URI + "dists/" + Dist + "/";
  61. Res += Type;
  62. return Res;
  63. }
  64. std::string debReleaseIndex::LocalFileName() const
  65. {
  66. // see if we have a InRelease file
  67. std::string PathInRelease = MetaIndexFile("InRelease");
  68. if (FileExists(PathInRelease))
  69. return PathInRelease;
  70. // and if not return the normal one
  71. if (FileExists(PathInRelease))
  72. return MetaIndexFile("Release");
  73. return "";
  74. }
  75. debReleaseIndex::debReleaseIndex(string const &URI, string const &Dist) :
  76. metaIndex(URI, Dist, "deb"), Trusted(CHECK_TRUST)
  77. {}
  78. debReleaseIndex::debReleaseIndex(string const &URI, string const &Dist, bool const Trusted) :
  79. metaIndex(URI, Dist, "deb") {
  80. SetTrusted(Trusted);
  81. }
  82. debReleaseIndex::~debReleaseIndex() {
  83. for (map<string, vector<debSectionEntry const*> >::const_iterator A = ArchEntries.begin();
  84. A != ArchEntries.end(); ++A)
  85. for (vector<const debSectionEntry *>::const_iterator S = A->second.begin();
  86. S != A->second.end(); ++S)
  87. delete *S;
  88. }
  89. template<typename CallC>
  90. void foreachTarget(std::string const URI, std::string const Dist,
  91. std::map<std::string, std::vector<debReleaseIndex::debSectionEntry const *> > const &ArchEntries,
  92. CallC &Call)
  93. {
  94. bool const flatArchive = (Dist[Dist.length() - 1] == '/');
  95. std::string baseURI = URI;
  96. if (flatArchive)
  97. {
  98. if (Dist != "/")
  99. baseURI += Dist;
  100. }
  101. else
  102. baseURI += "dists/" + Dist + "/";
  103. std::string const Release = (Dist == "/") ? "" : Dist;
  104. std::string const Site = ::URI::ArchiveOnly(URI);
  105. std::vector<std::string> lang = APT::Configuration::getLanguages(true);
  106. if (lang.empty())
  107. lang.push_back("none");
  108. map<string, vector<debReleaseIndex::debSectionEntry const*> >::const_iterator const src = ArchEntries.find("source");
  109. if (src != ArchEntries.end())
  110. {
  111. std::vector<std::string> const targets = _config->FindVector("APT::Acquire::Targets::deb-src", "", true);
  112. for (std::vector<std::string>::const_iterator T = targets.begin(); T != targets.end(); ++T)
  113. {
  114. #define APT_T_CONFIG(X) _config->Find(std::string("APT::Acquire::Targets::deb-src::") + *T + "::" + (X))
  115. std::string const MetaKey = APT_T_CONFIG(flatArchive ? "flatMetaKey" : "MetaKey");
  116. std::string const ShortDesc = APT_T_CONFIG("ShortDescription");
  117. std::string const LongDesc = APT_T_CONFIG(flatArchive ? "flatDescription" : "Description");
  118. bool const IsOptional = _config->FindB(std::string("APT::Acquire::Targets::deb-src::") + *T + "::Optional", true);
  119. #undef APT_T_CONFIG
  120. if (MetaKey.empty())
  121. continue;
  122. vector<debReleaseIndex::debSectionEntry const*> const SectionEntries = src->second;
  123. for (vector<debReleaseIndex::debSectionEntry const*>::const_iterator I = SectionEntries.begin();
  124. I != SectionEntries.end(); ++I)
  125. {
  126. for (vector<std::string>::const_iterator l = lang.begin(); l != lang.end(); ++l)
  127. {
  128. if (*l == "none" && MetaKey.find("$(LANGUAGE)") != std::string::npos)
  129. continue;
  130. std::map<std::string, std::string> Options;
  131. Options.insert(std::make_pair("SITE", Site));
  132. Options.insert(std::make_pair("RELEASE", Release));
  133. if (MetaKey.find("$(COMPONENT)") != std::string::npos)
  134. Options.insert(std::make_pair("COMPONENT", (*I)->Section));
  135. if (MetaKey.find("$(LANGUAGE)") != std::string::npos)
  136. Options.insert(std::make_pair("LANGUAGE", *l));
  137. Options.insert(std::make_pair("ARCHITECTURE", "source"));
  138. Options.insert(std::make_pair("BASE_URI", baseURI));
  139. Options.insert(std::make_pair("REPO_URI", URI));
  140. Options.insert(std::make_pair("TARGET_OF", "deb-src"));
  141. Options.insert(std::make_pair("CREATED_BY", *T));
  142. Call(MetaKey, ShortDesc, LongDesc, IsOptional, Options);
  143. if (MetaKey.find("$(LANGUAGE)") == std::string::npos)
  144. break;
  145. }
  146. if (MetaKey.find("$(COMPONENT)") == std::string::npos)
  147. break;
  148. }
  149. }
  150. }
  151. std::vector<std::string> const targets = _config->FindVector("APT::Acquire::Targets::deb", "", true);
  152. for (std::vector<std::string>::const_iterator T = targets.begin(); T != targets.end(); ++T)
  153. {
  154. #define APT_T_CONFIG(X) _config->Find(std::string("APT::Acquire::Targets::deb::") + *T + "::" + (X))
  155. std::string const MetaKey = APT_T_CONFIG(flatArchive ? "flatMetaKey" : "MetaKey");
  156. std::string const ShortDesc = APT_T_CONFIG("ShortDescription");
  157. std::string const LongDesc = APT_T_CONFIG(flatArchive ? "flatDescription" : "Description");
  158. bool const IsOptional = _config->FindB(std::string("APT::Acquire::Targets::deb::") + *T + "::Optional", true);
  159. #undef APT_T_CONFIG
  160. if (MetaKey.empty())
  161. continue;
  162. for (map<string, vector<debReleaseIndex::debSectionEntry const*> >::const_iterator a = ArchEntries.begin();
  163. a != ArchEntries.end(); ++a)
  164. {
  165. if (a->first == "source")
  166. continue;
  167. for (vector <const debReleaseIndex::debSectionEntry *>::const_iterator I = a->second.begin();
  168. I != a->second.end(); ++I) {
  169. for (vector<std::string>::const_iterator l = lang.begin(); l != lang.end(); ++l)
  170. {
  171. if (*l == "none" && MetaKey.find("$(LANGUAGE)") != std::string::npos)
  172. continue;
  173. std::map<std::string, std::string> Options;
  174. Options.insert(std::make_pair("SITE", Site));
  175. Options.insert(std::make_pair("RELEASE", Release));
  176. if (MetaKey.find("$(COMPONENT)") != std::string::npos)
  177. Options.insert(std::make_pair("COMPONENT", (*I)->Section));
  178. if (MetaKey.find("$(LANGUAGE)") != std::string::npos)
  179. Options.insert(std::make_pair("LANGUAGE", *l));
  180. if (MetaKey.find("$(ARCHITECTURE)") != std::string::npos)
  181. Options.insert(std::make_pair("ARCHITECTURE", a->first));
  182. Options.insert(std::make_pair("BASE_URI", baseURI));
  183. Options.insert(std::make_pair("REPO_URI", URI));
  184. Options.insert(std::make_pair("TARGET_OF", "deb"));
  185. Options.insert(std::make_pair("CREATED_BY", *T));
  186. Call(MetaKey, ShortDesc, LongDesc, IsOptional, Options);
  187. if (MetaKey.find("$(LANGUAGE)") == std::string::npos)
  188. break;
  189. }
  190. if (MetaKey.find("$(COMPONENT)") == std::string::npos)
  191. break;
  192. }
  193. if (MetaKey.find("$(ARCHITECTURE)") == std::string::npos)
  194. break;
  195. }
  196. }
  197. }
  198. struct ComputeIndexTargetsClass
  199. {
  200. vector <IndexTarget> IndexTargets;
  201. void operator()(std::string MetaKey, std::string ShortDesc, std::string LongDesc,
  202. bool const IsOptional, std::map<std::string, std::string> Options)
  203. {
  204. for (std::map<std::string, std::string>::const_iterator O = Options.begin(); O != Options.end(); ++O)
  205. {
  206. MetaKey = SubstVar(MetaKey, std::string("$(") + O->first + ")", O->second);
  207. ShortDesc = SubstVar(ShortDesc, std::string("$(") + O->first + ")", O->second);
  208. LongDesc = SubstVar(LongDesc, std::string("$(") + O->first + ")", O->second);
  209. }
  210. IndexTarget Target(
  211. MetaKey,
  212. ShortDesc,
  213. LongDesc,
  214. Options.find("BASE_URI")->second + MetaKey,
  215. IsOptional,
  216. Options
  217. );
  218. IndexTargets.push_back(Target);
  219. }
  220. };
  221. std::vector<IndexTarget> debReleaseIndex::GetIndexTargets() const
  222. {
  223. ComputeIndexTargetsClass comp;
  224. foreachTarget(URI, Dist, ArchEntries, comp);
  225. return comp.IndexTargets;
  226. }
  227. /*}}}*/
  228. bool debReleaseIndex::GetIndexes(pkgAcquire *Owner, bool const &GetAll) const
  229. {
  230. indexRecords * const iR = new indexRecords(Dist);
  231. if (Trusted == ALWAYS_TRUSTED)
  232. iR->SetTrusted(true);
  233. else if (Trusted == NEVER_TRUSTED)
  234. iR->SetTrusted(false);
  235. // special case for --print-uris
  236. std::vector<IndexTarget> const targets = GetIndexTargets();
  237. #define APT_TARGET(X) IndexTarget("", X, MetaIndexInfo(X), MetaIndexURI(X), false, std::map<std::string,std::string>())
  238. pkgAcqMetaBase * const TransactionManager = new pkgAcqMetaClearSig(Owner,
  239. APT_TARGET("InRelease"), APT_TARGET("Release"), APT_TARGET("Release.gpg"),
  240. targets, iR);
  241. #undef APT_TARGET
  242. if (GetAll)
  243. {
  244. for (std::vector<IndexTarget>::const_iterator Target = targets.begin(); Target != targets.end(); ++Target)
  245. new pkgAcqIndex(Owner, TransactionManager, *Target);
  246. }
  247. return true;
  248. }
  249. void debReleaseIndex::SetTrusted(bool const Trusted)
  250. {
  251. if (Trusted == true)
  252. this->Trusted = ALWAYS_TRUSTED;
  253. else
  254. this->Trusted = NEVER_TRUSTED;
  255. }
  256. bool debReleaseIndex::IsTrusted() const
  257. {
  258. if (Trusted == ALWAYS_TRUSTED)
  259. return true;
  260. else if (Trusted == NEVER_TRUSTED)
  261. return false;
  262. if(_config->FindB("APT::Authentication::TrustCDROM", false))
  263. if(URI.substr(0,strlen("cdrom:")) == "cdrom:")
  264. return true;
  265. string VerifiedSigFile = _config->FindDir("Dir::State::lists") +
  266. URItoFileName(MetaIndexURI("Release")) + ".gpg";
  267. if (FileExists(VerifiedSigFile))
  268. return true;
  269. VerifiedSigFile = _config->FindDir("Dir::State::lists") +
  270. URItoFileName(MetaIndexURI("InRelease"));
  271. return FileExists(VerifiedSigFile);
  272. }
  273. std::vector <pkgIndexFile *> *debReleaseIndex::GetIndexFiles()
  274. {
  275. if (Indexes != NULL)
  276. return Indexes;
  277. Indexes = new std::vector<pkgIndexFile*>();
  278. std::vector<IndexTarget> const Targets = GetIndexTargets();
  279. bool const istrusted = IsTrusted();
  280. for (std::vector<IndexTarget>::const_iterator T = Targets.begin(); T != Targets.end(); ++T)
  281. {
  282. std::string const TargetName = T->Option(IndexTarget::CREATED_BY);
  283. if (TargetName == "Packages")
  284. Indexes->push_back(new debPackagesIndex(*T, istrusted));
  285. else if (TargetName == "Sources")
  286. Indexes->push_back(new debSourcesIndex(*T, istrusted));
  287. else if (TargetName == "Translations")
  288. Indexes->push_back(new debTranslationsIndex(*T));
  289. }
  290. return Indexes;
  291. }
  292. void debReleaseIndex::PushSectionEntry(vector<string> const &Archs, const debSectionEntry *Entry) {
  293. for (vector<string>::const_iterator a = Archs.begin();
  294. a != Archs.end(); ++a)
  295. ArchEntries[*a].push_back(new debSectionEntry(Entry->Section, Entry->IsSrc));
  296. delete Entry;
  297. }
  298. void debReleaseIndex::PushSectionEntry(string const &Arch, const debSectionEntry *Entry) {
  299. ArchEntries[Arch].push_back(Entry);
  300. }
  301. debReleaseIndex::debSectionEntry::debSectionEntry (string const &Section,
  302. bool const &IsSrc): Section(Section), IsSrc(IsSrc)
  303. {}
  304. static bool ReleaseFileName(debReleaseIndex const * const That, std::string &ReleaseFile)
  305. {
  306. ReleaseFile = That->MetaIndexFile("InRelease");
  307. bool releaseExists = false;
  308. if (FileExists(ReleaseFile) == true)
  309. releaseExists = true;
  310. else
  311. {
  312. ReleaseFile = That->MetaIndexFile("Release");
  313. if (FileExists(ReleaseFile))
  314. releaseExists = true;
  315. }
  316. return releaseExists;
  317. }
  318. bool debReleaseIndex::Merge(pkgCacheGenerator &Gen,OpProgress * /*Prog*/) const/*{{{*/
  319. {
  320. std::string ReleaseFile;
  321. bool const releaseExists = ReleaseFileName(this, ReleaseFile);
  322. ::URI Tmp(URI);
  323. if (Gen.SelectReleaseFile(ReleaseFile, Tmp.Host) == false)
  324. return _error->Error("Problem with SelectReleaseFile %s", ReleaseFile.c_str());
  325. if (releaseExists == false)
  326. return true;
  327. FileFd Rel;
  328. // Beware: The 'Release' file might be clearsigned in case the
  329. // signature for an 'InRelease' file couldn't be checked
  330. if (OpenMaybeClearSignedFile(ReleaseFile, Rel) == false)
  331. return false;
  332. if (_error->PendingError() == true)
  333. return false;
  334. // Store the IMS information
  335. pkgCache::RlsFileIterator File = Gen.GetCurRlsFile();
  336. pkgCacheGenerator::Dynamic<pkgCache::RlsFileIterator> DynFile(File);
  337. // Rel can't be used as this is potentially a temporary file
  338. struct stat Buf;
  339. if (stat(ReleaseFile.c_str(), &Buf) != 0)
  340. return _error->Errno("fstat", "Unable to stat file %s", ReleaseFile.c_str());
  341. File->Size = Buf.st_size;
  342. File->mtime = Buf.st_mtime;
  343. pkgTagFile TagFile(&Rel, Rel.Size());
  344. pkgTagSection Section;
  345. if (_error->PendingError() == true || TagFile.Step(Section) == false)
  346. return false;
  347. std::string data;
  348. #define APT_INRELEASE(TYPE, TAG, STORE) \
  349. data = Section.FindS(TAG); \
  350. if (data.empty() == false) \
  351. { \
  352. map_stringitem_t const storage = Gen.StoreString(pkgCacheGenerator::TYPE, data); \
  353. STORE = storage; \
  354. }
  355. APT_INRELEASE(MIXED, "Suite", File->Archive)
  356. APT_INRELEASE(VERSIONNUMBER, "Version", File->Version)
  357. APT_INRELEASE(MIXED, "Origin", File->Origin)
  358. APT_INRELEASE(MIXED, "Codename", File->Codename)
  359. APT_INRELEASE(MIXED, "Label", File->Label)
  360. #undef APT_INRELEASE
  361. Section.FindFlag("NotAutomatic", File->Flags, pkgCache::Flag::NotAutomatic);
  362. Section.FindFlag("ButAutomaticUpgrades", File->Flags, pkgCache::Flag::ButAutomaticUpgrades);
  363. return !_error->PendingError();
  364. }
  365. /*}}}*/
  366. // ReleaseIndex::FindInCache - Find this index /*{{{*/
  367. pkgCache::RlsFileIterator debReleaseIndex::FindInCache(pkgCache &Cache) const
  368. {
  369. std::string ReleaseFile;
  370. bool const releaseExists = ReleaseFileName(this, ReleaseFile);
  371. pkgCache::RlsFileIterator File = Cache.RlsFileBegin();
  372. for (; File.end() == false; ++File)
  373. {
  374. if (File->FileName == 0 || ReleaseFile != File.FileName())
  375. continue;
  376. // empty means the file does not exist by "design"
  377. if (releaseExists == false && File->Size == 0)
  378. return File;
  379. struct stat St;
  380. if (stat(File.FileName(),&St) != 0)
  381. {
  382. if (_config->FindB("Debug::pkgCacheGen", false))
  383. std::clog << "ReleaseIndex::FindInCache - stat failed on " << File.FileName() << std::endl;
  384. return pkgCache::RlsFileIterator(Cache);
  385. }
  386. if ((unsigned)St.st_size != File->Size || St.st_mtime != File->mtime)
  387. {
  388. if (_config->FindB("Debug::pkgCacheGen", false))
  389. std::clog << "ReleaseIndex::FindInCache - size (" << St.st_size << " <> " << File->Size
  390. << ") or mtime (" << St.st_mtime << " <> " << File->mtime
  391. << ") doesn't match for " << File.FileName() << std::endl;
  392. return pkgCache::RlsFileIterator(Cache);
  393. }
  394. return File;
  395. }
  396. return File;
  397. }
  398. /*}}}*/
  399. class APT_HIDDEN debSLTypeDebian : public pkgSourceList::Type
  400. {
  401. protected:
  402. bool CreateItemInternal(vector<metaIndex *> &List, string const &URI,
  403. string const &Dist, string const &Section,
  404. bool const &IsSrc, map<string, string> const &Options) const
  405. {
  406. // parse arch=, arch+= and arch-= settings
  407. map<string, string>::const_iterator arch = Options.find("arch");
  408. vector<string> Archs;
  409. if (arch != Options.end())
  410. Archs = VectorizeString(arch->second, ',');
  411. else
  412. Archs = APT::Configuration::getArchitectures();
  413. if ((arch = Options.find("arch+")) != Options.end())
  414. {
  415. std::vector<std::string> const plusArch = VectorizeString(arch->second, ',');
  416. for (std::vector<std::string>::const_iterator plus = plusArch.begin(); plus != plusArch.end(); ++plus)
  417. if (std::find(Archs.begin(), Archs.end(), *plus) == Archs.end())
  418. Archs.push_back(*plus);
  419. }
  420. if ((arch = Options.find("arch-")) != Options.end())
  421. {
  422. std::vector<std::string> const minusArch = VectorizeString(arch->second, ',');
  423. for (std::vector<std::string>::const_iterator minus = minusArch.begin(); minus != minusArch.end(); ++minus)
  424. {
  425. std::vector<std::string>::iterator kill = std::find(Archs.begin(), Archs.end(), *minus);
  426. if (kill != Archs.end())
  427. Archs.erase(kill);
  428. }
  429. }
  430. map<string, string>::const_iterator const trusted = Options.find("trusted");
  431. debReleaseIndex *Deb = NULL;
  432. for (vector<metaIndex *>::const_iterator I = List.begin();
  433. I != List.end(); ++I)
  434. {
  435. // We only worry about debian entries here
  436. if (strcmp((*I)->GetType(), "deb") != 0)
  437. continue;
  438. /* This check insures that there will be only one Release file
  439. queued for all the Packages files and Sources files it
  440. corresponds to. */
  441. if ((*I)->GetURI() == URI && (*I)->GetDist() == Dist)
  442. {
  443. Deb = dynamic_cast<debReleaseIndex*>(*I);
  444. if (Deb != NULL)
  445. break;
  446. }
  447. }
  448. // No currently created Release file indexes this entry, so we create a new one.
  449. if (Deb == NULL)
  450. {
  451. Deb = new debReleaseIndex(URI, Dist);
  452. List.push_back(Deb);
  453. }
  454. if (IsSrc == true)
  455. Deb->PushSectionEntry ("source", new debReleaseIndex::debSectionEntry(Section, IsSrc));
  456. else
  457. {
  458. if (Dist[Dist.size() - 1] == '/')
  459. Deb->PushSectionEntry ("any", new debReleaseIndex::debSectionEntry(Section, IsSrc));
  460. else
  461. Deb->PushSectionEntry (Archs, new debReleaseIndex::debSectionEntry(Section, IsSrc));
  462. }
  463. if (trusted != Options.end())
  464. Deb->SetTrusted(StringToBool(trusted->second, false));
  465. return true;
  466. }
  467. };
  468. debDebFileMetaIndex::debDebFileMetaIndex(std::string const &DebFile)
  469. : metaIndex(DebFile, "local-uri", "deb-dist"), DebFile(DebFile)
  470. {
  471. DebIndex = new debDebPkgFileIndex(DebFile);
  472. Indexes = new vector<pkgIndexFile *>();
  473. Indexes->push_back(DebIndex);
  474. }
  475. class APT_HIDDEN debSLTypeDeb : public debSLTypeDebian
  476. {
  477. public:
  478. bool CreateItem(vector<metaIndex *> &List, string const &URI,
  479. string const &Dist, string const &Section,
  480. std::map<string, string> const &Options) const
  481. {
  482. return CreateItemInternal(List, URI, Dist, Section, false, Options);
  483. }
  484. debSLTypeDeb()
  485. {
  486. Name = "deb";
  487. Label = "Standard Debian binary tree";
  488. }
  489. };
  490. class APT_HIDDEN debSLTypeDebSrc : public debSLTypeDebian
  491. {
  492. public:
  493. bool CreateItem(vector<metaIndex *> &List, string const &URI,
  494. string const &Dist, string const &Section,
  495. std::map<string, string> const &Options) const
  496. {
  497. return CreateItemInternal(List, URI, Dist, Section, true, Options);
  498. }
  499. debSLTypeDebSrc()
  500. {
  501. Name = "deb-src";
  502. Label = "Standard Debian source tree";
  503. }
  504. };
  505. class APT_HIDDEN debSLTypeDebFile : public pkgSourceList::Type
  506. {
  507. public:
  508. bool CreateItem(vector<metaIndex *> &List, string const &URI,
  509. string const &/*Dist*/, string const &/*Section*/,
  510. std::map<string, string> const &/*Options*/) const
  511. {
  512. metaIndex *mi = new debDebFileMetaIndex(URI);
  513. List.push_back(mi);
  514. return true;
  515. }
  516. debSLTypeDebFile()
  517. {
  518. Name = "deb-file";
  519. Label = "Debian Deb File";
  520. }
  521. };
  522. APT_HIDDEN debSLTypeDeb _apt_DebType;
  523. APT_HIDDEN debSLTypeDebSrc _apt_DebSrcType;
  524. APT_HIDDEN debSLTypeDebFile _apt_DebFileType;