~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/doc/package-arch-specific.txt

  • Committer: William Grant
  • Date: 2010-07-31 07:16:38 UTC
  • mto: This revision was merged to the branch mainline in revision 11291.
  • Revision ID: me@williamgrant.id.au-20100731071638-gssrd7cpfm9xew9r
Treat 'linux-any' the same as 'any' in build architecture calculations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    ...     sourcename='test-buildd-4', version='670',
50
50
    ...     architecturehintlist="hppa")
51
51
 
52
 
Create sources with 'any-$(ARCH)' and 'linux-$(ARCH)' notation.
 
52
Create sources with 'any-$(ARCH)', 'linux-$(ARCH)' and 'linux-any' notation.
53
53
 
54
54
    >>> pub_any_foo = test_publisher.getPubSource(
55
55
    ...     sourcename='test-buildd-6', version='672',
59
59
    ...     sourcename='test-buildd-7', version='673',
60
60
    ...     architecturehintlist="linux-i386")
61
61
 
 
62
    >>> pub_linux_any = test_publisher.getPubSource(
 
63
    ...     sourcename='test-buildd-7', version='674',
 
64
    ...     architecturehintlist="linux-any")
 
65
 
62
66
Create a PPA source publication.
63
67
 
64
68
    >>> from canonical.launchpad.interfaces import IPersonSet
65
69
    >>> cprov = getUtility(IPersonSet).getByName('cprov')
66
70
 
67
71
    >>> pub_ppa = test_publisher.getPubSource(
68
 
    ...     sourcename='test-ppa', version='674',
 
72
    ...     sourcename='test-ppa', version='675',
69
73
    ...     architecturehintlist="i386 hppa",
70
74
    ...     archive=cprov.archive)
71
75
 
136
140
    >>> print_build_architectures(pub_linux_foo)
137
141
    i386
138
142
 
 
143
    >>> print_build_architectures(pub_linux_any)
 
144
    hppa
 
145
    i386
 
146
 
139
147
 
140
148
== PPA architectures ==
141
149