[Checkins] SVN: Products.GenericSetup/trunk/Products/GenericSetup/tool.py When importing a tarball the profile_id is None. In that case we should not try to look for dependencies

Wichert Akkerman wichert at wiggy.net
Wed Feb 20 10:03:21 EST 2008


Log message for revision 84078:
  When importing a tarball the profile_id is None. In that case we should not try to look for dependencies

Changed:
  U   Products.GenericSetup/trunk/Products/GenericSetup/tool.py

-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/tool.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/tool.py	2008-02-20 14:56:51 UTC (rev 84077)
+++ Products.GenericSetup/trunk/Products/GenericSetup/tool.py	2008-02-20 15:03:21 UTC (rev 84078)
@@ -1147,7 +1147,7 @@
                                    ignore_dependencies=False,
                                    seen=None):
 
-        if not ignore_dependencies:
+        if profile_id is not None or not ignore_dependencies:
             try: 
                 chain = self.getProfileDependencyChain( profile_id )
             except KeyError, e:



More information about the Checkins mailing list