On Sat, Feb 20, 2010 at 12:50:33AM -0000, William Grant wrote:
> === modified file 'lib/lp/soyuz/doc/distroarchseries.txt'
> --- lib/lp/soyuz/doc/distroarchseries.txt 2009-10-26 18:40:04 +0000
> +++ lib/lp/soyuz/doc/distroarchseries.txt 2010-02-20 00:50:31 +0000
> @@ -344,6 +344,14 @@
> >>> print_architectures(hoary.enabled_architectures)
> The Hoary Hedgehog Release for hppa (hppa) (ppa)
>
> +The architecture also has a 'chroot_url' attribute directly referencing
> +the file.
> +
> + >>> print hoary.getDistroArchSeries('hppa').chroot_url
> + http://localhost:58000/.../filename...
> + >>> print hoary.getDistroArchSeries('i386').chroot_url
> + None
When is chroot_url None? It'd be good to document this. Also, for test
correctness, I'd also (in addition to the current test) compare
chroot_url to getChroot().http_url, so that you know that you're not
returning just any URL.
On Sat, Feb 20, 2010 at 12:50:33AM -0000, William Grant wrote: soyuz/doc/ distroarchserie s.txt' soyuz/doc/ distroarchserie s.txt 2009-10-26 18:40:04 +0000 soyuz/doc/ distroarchserie s.txt 2010-02-20 00:50:31 +0000 ures(hoary. enabled_ architectures) ArchSeries( 'hppa') .chroot_ url localhost: 58000/. ../filename... ArchSeries( 'i386') .chroot_ url
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -344,6 +344,14 @@
> >>> print_architect
> The Hoary Hedgehog Release for hppa (hppa) (ppa)
>
> +The architecture also has a 'chroot_url' attribute directly referencing
> +the file.
> +
> + >>> print hoary.getDistro
> + http://
> + >>> print hoary.getDistro
> + None
When is chroot_url None? It'd be good to document this. Also, for test ).http_ url, so that you know that you're not
correctness, I'd also (in addition to the current test) compare
chroot_url to getChroot(
returning just any URL.
> === modified file 'lib/lp/ soyuz/interface s/distroarchser ies.py' soyuz/interface s/distroarchser ies.py 2009-07-17 00:26:05 +0000 soyuz/interface s/distroarchser ies.py 2010-02-20 00:50:31 +0000 s."))) es."))) unt(): soyuz/model/ distroarchserie s.py' soyuz/model/ distroarchserie s.py 2009-12-24 06:57:25 +0000 soyuz/model/ distroarchserie s.py 2010-02-20 00:50:31 +0000 chroot. chroot
> --- lib/lp/
> +++ lib/lp/
> @@ -108,6 +108,12 @@
> Interface, # Really IArchive, circular import fixed below.
> title=_('Main Archive'),
> description=_("The main archive of the distroarchserie
> + chroot_url = exported(
> + TextLine(
> + title=_("Build chroot URL"),
> + description=_(
> + "The URL to the current build chroot for this "
> + "distroarchseri
>
> def updatePackageCo
> """Update the cached binary package count for this distro arch
>
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -136,6 +136,13 @@
>
> return pocket_
>
> + @property
> + def chroot_url(self):
> + chroot = self.getChroot()
This should have a """See `IDistroArchSer ies`."" " docstring.
I'm approving this branch with these small comments resolved.
vote approve
-- /launchpad. net/~bjornt
Björn Tillenius | https:/