Package dak :: Module generate_packages_sources2
[hide private]
[frames] | no frames]

Module generate_packages_sources2

source code

Generate Packages/Sources files


Contact: Debian FTP Master <ftpmaster@debian.org>

Copyright:

License: GNU General Public License version 2 or later

Functions [hide private]
 
usage() source code
 
generate_sources(suite_id, component_id) source code
 
generate_packages(suite_id, component_id, architecture_id, type_name) source code
 
generate_translations(suite_id, component_id) source code
 
main() source code
Variables [hide private]
  _sources_query = R...
  _packages_query = R...
  _translations_query = r...

Imports: apt_pkg, sys


Variables Details [hide private]

_sources_query

Value:
R"""
SELECT

  (SELECT
     STRING_AGG(
       CASE
         WHEN key = 'Source' THEN E'Package\: '
         WHEN key = 'Files' AND suite.checksums && array['md5sum'] THE\
...

_packages_query

Value:
R"""
WITH

  tmp AS (
    SELECT
      b.id AS binary_id,
      b.package AS package,
      b.version AS version,
...

_translations_query

Value:
r"""
WITH
  override_suite AS
    (SELECT
      s.id AS id,
      COALESCE(os.id, s.id) AS overridesuite_id
      FROM suite AS s LEFT JOIN suite AS os ON s.overridesuite = os.su\
ite_name)
...