Upgradeprovision error

Rohit Rajan rohit.rajan at catalyst-us.com
Sun Jun 27 23:02:48 MDT 2010


Thanks everyone i'm able to upgrade my provision to Version 
4.0.0alpha12-GIT-5c98ccd

On 6/23/2010 8:12 PM, Michael Wood wrote:
> s4 upgradeprovision: Try to support older Pythons.
>
> Use "...".split(sep, 1) instead of "...".partition(sep).
> ---
>   source4/scripting/python/samba/upgradehelpers.py |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/source4/scripting/python/samba/upgradehelpers.py b/source4/scripting/python/samba/upgradehelpers.py
> index 5890745..64ebd13 100755
> --- a/source4/scripting/python/samba/upgradehelpers.py
> +++ b/source4/scripting/python/samba/upgradehelpers.py
> @@ -422,7 +422,7 @@ def identic_rename(ldbobj, dn):
>       :param lbdobj: An Ldb Object
>       :param dn: DN of the object to manipulate
>       """
> -    (before, sep, after)=str(dn).partition('=')
> +    (before, after) = str(dn).split('=', 1)
>       ldbobj.rename(dn, ldb.Dn(ldbobj, "%s=foo%s" % (before, after)))
>       ldbobj.rename(ldb.Dn(ldbobj, "%s=foo%s" % (before, after)), dn)
>
>    

This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. 

Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by "Catalyst Business Partners" or any of its subsidiaries unless sent with that express intent and with due authority of Catalyst Business Partners. 

Catalyst Business Partners has taken sufficient measures and precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.



More information about the samba-technical mailing list