[Silva-general] Upgrading buildout to different version

Sylvain Viollon sylvain at infrae.com
Fri Jan 22 13:36:36 CET 2010


On Monday 18 January 2010 13:27:42 Jonathan Bowlas wrote:
> Hi All,
> 

  Hello,

> I followed the instructions here
> http://docs.infrae.com/silva/buildout.html#upgrading-your-setup to
> upgrade my buildout setup however when I bin\buildout afterwards I get
> the following error:
> 
> An internal error occured due to a bug in either zc.buildout or in a
> recipe being used:
> [...]
> ValueError: New path have been added to the location:
>  C:\Silva-2.0.13-new\produc ts\SilvaFind,
>  C:\Silva-2.0.13-new\products\Annotations, C:\Silva-2.0.13-new\prod
>  ucts\Sprout, C:\Silva-2.0.13-new\products\SilvaViews,
>  C:\Silva-2.0.13-new\produc ts\SilvaLayout,
>  C:\Silva-2.0.13-new\products\README.txt, C:\Silva-2.0.13-new\pro
>  ducts\z3locales, C:\Silva-2.0.13-new\products\SilvaExternalSources,
>  C:\Silva-2.0 .13-new\products\Formulator,
>  C:\Silva-2.0.13-new\products\kupu, C:\Silva-2.0.13-
>  new\products\FileSystemSite, C:\Silva-2.0.13-new\products\Groups,
>  C:\Silva-2.0.1 3-new\products\ParsedXML,
>  C:\Silva-2.0.13-new\products\ZMySQLDA, C:\Silva-2.0.13
>  -new\products\XMLWidgets, C:\Silva-2.0.13-new\products\SilvaMetadata,
>  C:\Silva-2 .0.13-new\products\SilvaDocument,
>  C:\Silva-2.0.13-new\products\ProxyIndex, C:\Si
>  lva-2.0.13-new\products\Silva.
> 
> It seems that checkAddedPaths is checking for any products that aren't
> added via buildout into 'parts' but since I revised our buildout
> scripts to install everything in 'products' the script raises this
> exception informing me that these are new paths.
> 
> To resove this I've commented out the call to checkAddedPaths from
> Native.py and it works fine. So my question is twofold - is it ok to
> comment out checkAddedPaths and should I really be installing
> everything in 'parts'?
> 

  What happened is that you added paths to a directory which was only made for 
SVN checkouts. The purpose of that checkAddedPaths, is to be sure that if you 
added something (like here) it's not deleted without letting it you knows it.

  The SVN system manage its own directory and keep it clean for other unwanted 
products. If you want to add products to the same directory, you need to fetch 
them by SVN as well. Or you can define a different directory where you can 
additional products via other means (see 
http://docs.infrae.com/silva/buildout/extending.html).

  And the SVN directory is in parts because, like everything which is in 
parts, it can be deleted to be reinstalled when you upgrade. If you move it 
outside of parts, well, this rule still does apply (it will still be deleted, 
after checking you didn't add or modify anything).

  Regards,

  Sylvain,

-- 
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands



More information about the silva-general mailing list