|
15 | 15 | {% endif %}
|
16 | 16 | minpackages: {{ minpackages }}
|
17 | 17 | sources:
|
18 |
| - - name: [ {{codename}}/main, {{codename}}/multiverse, {{codename}}/restricted, {{codename}}/universe, {{codename}}-updates/main, {{codename}}-updates/multiverse, {{codename}}-updates/restricted, {{codename}}-updates/universe ] |
| 18 | + {% for sub1 in [codename, codename + "-updates"] %} |
| 19 | + {% for sub2 in ["main", "multiverse", "restricted", "universe"] %} |
| 20 | + - name: {{sub1}}/{{sub2}} |
19 | 21 | fetcher:
|
20 | 22 | class: FileFetcher
|
21 |
| - url: 'http://ftp.ubuntu.com/ubuntu/dists/{source}/source/Sources.gz' |
| 23 | + url: 'http://ftp.ubuntu.com/ubuntu/dists/{{sub1}}/{{sub2}}/source/Sources.gz' |
22 | 24 | fetch_timeout: 5
|
23 | 25 | compression: gz
|
24 | 26 | parser:
|
25 | 27 | class: DebianSourcesParser
|
26 |
| - subrepo: '{source}' |
| 28 | + subrepo: {{sub1}}/{{sub2}} |
| 29 | + {% if packages %} |
| 30 | + # note that there's no need to toggle updates explicitly (like we do for backports |
| 31 | + # and proposed) because updates for future releases always exist but are empty |
| 32 | + packagelinks: |
| 33 | + - type: PACKAGE_HOMEPAGE |
| 34 | + url: 'https://packages.ubuntu.com/source/{{sub1}}/{srcname}' |
| 35 | + {% endif %} |
| 36 | + {% endfor %} |
| 37 | + {% endfor %} |
27 | 38 | repolinks:
|
28 | 39 | - desc: Ubuntu packages
|
29 | 40 | url: https://packages.ubuntu.com/
|
30 | 41 | - desc: Ubuntu packages in {{codename}}
|
31 | 42 | url: https://packages.ubuntu.com/{{codename}}/
|
32 | 43 | packagelinks:
|
33 |
| - {% if packages %} |
34 |
| - - type: PACKAGE_HOMEPAGE |
35 |
| - url: 'https://packages.ubuntu.com/source/{{codename}}/{srcname}' |
36 |
| - {% endif %} |
37 | 44 | - type: PACKAGE_HOMEPAGE
|
38 | 45 | url: 'https://launchpad.net/ubuntu/+source/{srcname}'
|
39 | 46 | - type: PACKAGE_ISSUE_TRACKER
|
|
54 | 61 | {% endif %}
|
55 | 62 | minpackages: 0
|
56 | 63 | sources:
|
57 |
| - - name: [ {{codename}}-backports/main, {{codename}}-backports/multiverse, {{codename}}-backports/restricted, {{codename}}-backports/universe ] |
| 64 | + {% set sub1 = codename + "-backports" %} |
| 65 | + {% for sub2 in ["main", "multiverse", "restricted", "universe"] %} |
| 66 | + - name: {{codename}}-backports/{{sub2}} |
58 | 67 | fetcher:
|
59 | 68 | class: FileFetcher
|
60 |
| - url: 'http://ftp.ubuntu.com/ubuntu/dists/{source}/source/Sources.gz' |
| 69 | + url: 'http://ftp.ubuntu.com/ubuntu/dists/{{sub1}}/{{sub2}}/source/Sources.gz' |
61 | 70 | fetch_timeout: 5
|
62 | 71 | compression: gz
|
63 | 72 | parser:
|
64 | 73 | class: DebianSourcesParser
|
65 |
| - subrepo: '{source}' |
| 74 | + subrepo: {{sub1}}/{{sub2}} |
| 75 | + {% if packages %} |
| 76 | + packagelinks: |
| 77 | + - type: PACKAGE_HOMEPAGE |
| 78 | + url: 'https://packages.ubuntu.com/source/{{sub1}}/{srcname}' |
| 79 | + {% endif %} |
| 80 | + {% endfor %} |
66 | 81 | repolinks:
|
67 | 82 | - desc: Ubuntu packages
|
68 | 83 | url: https://packages.ubuntu.com/
|
|
90 | 105 | {% endif %}
|
91 | 106 | minpackages: 0
|
92 | 107 | sources:
|
93 |
| - - name: [ {{codename}}-proposed/main, {{codename}}-proposed/multiverse, {{codename}}-proposed/restricted, {{codename}}-proposed/universe ] |
| 108 | + {% set sub1 = codename + "-proposed" %} |
| 109 | + {% for sub2 in ["main", "multiverse", "restricted", "universe"] %} |
| 110 | + - name: {{sub1}}/{{sub2}} |
94 | 111 | fetcher:
|
95 | 112 | class: FileFetcher
|
96 |
| - url: 'http://ftp.ubuntu.com/ubuntu/dists/{source}/source/Sources.gz' |
| 113 | + url: 'http://ftp.ubuntu.com/ubuntu/dists/{{sub1}}/{{sub2}}/source/Sources.gz' |
97 | 114 | fetch_timeout: 5
|
98 | 115 | compression: gz
|
99 | 116 | parser:
|
100 | 117 | class: DebianSourcesParser
|
101 |
| - subrepo: '{source}' |
| 118 | + subrepo: {{sub1}}/{{sub2}} |
| 119 | + {% endfor %} |
102 | 120 | repolinks:
|
103 | 121 | - desc: Ubuntu packages
|
104 | 122 | url: https://packages.ubuntu.com/
|
|
0 commit comments