~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archivepublisher/tests/publisher-config.txt

  • Committer: Curtis Hovey
  • Date: 2011-12-18 15:13:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14547.
  • Revision ID: curtis.hovey@canonical.com-20111218151307-sdm2gzobt5tplbe0
Moved badges to lp.app.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Publisher Configuration Provider
2
 
================================
 
1
= Publisher Configuration Provider =
3
2
 
4
3
The config module has a function to provide a modified publisher configuration
5
4
that provides the right paths for its publication according to the given
24
23
    ...         print '%s: %s' % (attr_name, getattr(config, attr_name))
25
24
 
26
25
 
27
 
Primary
28
 
-------
 
26
== Primary ==
29
27
 
30
28
    >>> from lp.registry.interfaces.distribution import IDistributionSet
31
29
    >>> ubuntutest = getUtility(IDistributionSet)['ubuntutest']
45
43
    temproot:        /var/tmp/archive/ubuntutest-temp
46
44
 
47
45
 
48
 
PPAs
49
 
----
 
46
== PPAs ==
50
47
 
51
48
Adjust Celso's PPA to point to a configured distribution and built its
52
49
publisher configuration.
66
63
The base Archive publication location is set in the current Launchpad
67
64
configuration file:
68
65
 
69
 
    >>> from lp.services.config import config
 
66
    >>> from canonical.config import config
70
67
    >>> ppa_config.distroroot == config.personalpackagearchive.root
71
68
    True
72
69
 
118
115
    temproot:        /var/tmp/archive/ubuntutest-temp
119
116
 
120
117
 
121
 
Partner
122
 
-------
 
118
== Partner ==
123
119
 
124
120
The publisher config for PARTNER contains only 'partner' in its
125
121
components.  This prevents non-partner being published in the partner
143
139
    temproot:        /var/tmp/archive/ubuntutest-temp
144
140
 
145
141
 
146
 
DEBUG
147
 
-----
 
142
== DEBUG ==
148
143
 
149
144
The publisher configuration for DEBUG archives points to directories
150
145
besides PRIMARY repository ones, but the distribution part is
169
164
    temproot:        /var/tmp/archive/ubuntutest-temp
170
165
 
171
166
 
172
 
COPY
173
 
----
 
167
== COPY ==
174
168
 
175
169
In the case of copy archives (used for rebuild testing) the archiveroot
176
170
is of the form distroroot/distroname-archivename/distroname
182
176
    >>> copy_config = getPubConfig(copy_archive)
183
177
 
184
178
    >>> dump_config(copy_config)
185
 
    distroroot:    /var/tmp/archive
186
 
    archiveroot:   /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest
187
 
    poolroot:      /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest/pool
188
 
    distsroot:     /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest/dists
189
 
    overrideroot:
190
 
        /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest-overrides
191
 
    cacheroot:     /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest-cache
192
 
    miscroot:      /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest-misc
193
 
    germinateroot:
194
 
        /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest-germinate
195
 
    temproot:      /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest-temp
 
179
    distroroot:      /var/tmp/archive
 
180
    archiveroot:     /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest
 
181
    poolroot:        /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest/pool
 
182
    distsroot:       /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest/dists
 
183
    overrideroot:    /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest-overrides
 
184
    cacheroot:       /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest-cache
 
185
    miscroot:        /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest-misc
 
186
    germinateroot:   /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest-germinate
 
187
    temproot:        /var/tmp/archive/ubuntutest-rebuildtest99/ubuntutest-temp