The Samba-Bugzilla – Attachment 5085 Details for
Bug 6969
upgradeprovision from alpha9 not able to upgrade from alpha8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposal fix
fix_upgradeprovision (text/plain), 1.09 KB, created by
Matthieu Patou
on 2009-12-12 09:37:15 UTC
(
hide
)
Description:
proposal fix
Filename:
MIME Type:
Creator:
Matthieu Patou
Created:
2009-12-12 09:37:15 UTC
Size:
1.09 KB
patch
obsolete
>diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision >index 8ab76bf..6e47897 100755 >--- a/source4/scripting/bin/upgradeprovision >+++ b/source4/scripting/bin/upgradeprovision >@@ -140,6 +140,12 @@ if setup_dir is None: > > session = system_session() > >+# simple helper to allow back and forth rename >+def identic_rename(ldb,dn): >+ (before,sep,after)=str(dn).partition('=') >+ ldb.rename(dn,ldb.Dn(ldb,"%s=foo%s"%(before,after))) >+ ldb.rename(ldb.Dn(ldb,"%s=foo%s"%(before,after)),dn) >+ > # Create an array of backlinked attributes > def populate_backlink(newpaths,creds,session,schemadn): > newsam_ldb = Ldb(newpaths.samdb, session_info=session, credentials=creds,lp=lp) >@@ -458,8 +464,7 @@ def update_secrets(newpaths,paths,creds,session): > > if att == "name": > message(CHANGE,"Found attribute name on %s, must rename the DN "%(res2[0].dn)) >- secrets_ldb.rename(res2[0].dn,ldb.Dn(secrets_ldb,"%sfoo"%str(res2[0].dn))) >- secrets_ldb.rename(ldb.Dn(secrets_ldb,"%sfoo"%str(res2[0].dn)),res2[0].dn) >+ identic_rename(secrets_ldb,res[0].dn) > else: > delta.remove(att) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6969
: 5085