Skip to content

Commit

Permalink
Added patch to avoid utility wipe on reinstallation
Browse files Browse the repository at this point in the history
svn path=/collective.transcode.star/trunk/; revision=145370
  • Loading branch information
clopy committed Oct 1, 2010
1 parent 234964b commit dffb570
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildout-p3.cfg
Expand Up @@ -14,6 +14,7 @@ parts =
zope2
instance
zopepy
utilities-patch

# Change the number here to change the version of Plone being used
extends =
Expand Down Expand Up @@ -111,3 +112,8 @@ interpreter = zopepy
extra-paths = ${zope2:location}/lib/python
scripts = zopepy

[utilities-patch]
recipe = collective.recipe.patch
egg = Products.CMFQuickInstallerTool==2.1.7
patches = utilities.patch

11 changes: 11 additions & 0 deletions utilities.patch
@@ -0,0 +1,11 @@
--- Products/CMFQuickInstallerTool/QuickInstallerTool.py.old
+++ Products/CMFQuickInstallerTool/QuickInstallerTool.py
@@ -640,7 +640,7 @@

# only delete everything EXCEPT portalobjects (tools etc) for reinstall
cascade=[c for c in InstalledProduct.default_cascade
- if c != 'portalobjects']
+ if c not in ('portalobjects', 'utilities',)]
self.uninstallProducts(products, cascade, reinstall=True)
self.installProducts(products,
stoponerror=True,

0 comments on commit dffb570

Please sign in to comment.