[Uludag-commits] r17552 - in branches/yali4/yali4: . gui

uludag-commits at pardus.org.tr uludag-commits at pardus.org.tr
1 Nis 2008 Sal 23:27:17 EEST


Author: gokmen.goksel
Date: Tue Apr  1 23:27:16 2008
New Revision: 17552

Modified:
   branches/yali4/yali4/gui/ScrGoodbye.py
   branches/yali4/yali4/gui/ScrInstall.py
   branches/yali4/yali4/gui/runner.py
   branches/yali4/yali4/postinstall.py
Log:
 * Birtakım fiksler..

Modified: branches/yali4/yali4/gui/ScrGoodbye.py
=================================================================
--- branches/yali4/yali4/gui/ScrGoodbye.py	(original)
+++ branches/yali4/yali4/gui/ScrGoodbye.py	Tue Apr  1 23:27:16 2008
@@ -127,7 +127,7 @@
         def setHostName():
             global bus
             obj = bus.get_object("tr.org.pardus.comar", "/package/baselayout")
-            obj.setHostName(ctx.installData.hostName, dbus_interface="tr.org.pardus.comar.Net.Stack")
+            obj.setHostName(str(ctx.installData.hostName), dbus_interface="tr.org.pardus.comar.Net.Stack")
             ctx.debugger.log("Hostname set as %s" % ctx.installData.hostName)
             return True
 
@@ -147,7 +147,7 @@
             if not ctx.installData.useYaliFirstBoot:
                 global bus
                 obj = bus.get_object("tr.org.pardus.comar", "/package/baselayout")
-                obj.setUser(0, "", "", "", ctx.installData.rootPassword, "", dbus_interface="tr.org.pardus.comar.User.Manager")
+                obj.setUser(0, "", "", "", str(ctx.installData.rootPassword), "", dbus_interface="tr.org.pardus.comar.User.Manager")
             return True
 
         def writeConsoleData():

Modified: branches/yali4/yali4/gui/ScrInstall.py
=================================================================
--- branches/yali4/yali4/gui/ScrInstall.py	(original)
+++ branches/yali4/yali4/gui/ScrInstall.py	Tue Apr  1 23:27:16 2008
@@ -283,8 +283,8 @@
 
         try:
             # run all pending...
-            yali4.pisiiface.configure_pending()
             ctx.debugger.log("execute :: yali4.pisiiface.configure_pending() called")
+            yali4.pisiiface.configure_pending()
         except Exception, e:
             # User+10: error
             qevent = PisiEvent(QEvent.User, EventError)

Modified: branches/yali4/yali4/gui/runner.py
=================================================================
--- branches/yali4/yali4/gui/runner.py	(original)
+++ branches/yali4/yali4/gui/runner.py	Tue Apr  1 23:27:16 2008
@@ -126,6 +126,7 @@
         w = ExceptionWidget(tb)
 
     print "BACKTRACE: ",tb
+    ctx.debugger.log(tb)
     d = Dialog(title, w, None)
     d.resize(500,400)
     d.exec_()

Modified: branches/yali4/yali4/postinstall.py
=================================================================
--- branches/yali4/yali4/postinstall.py	(original)
+++ branches/yali4/yali4/postinstall.py	Tue Apr  1 23:27:16 2008
@@ -15,10 +15,12 @@
 import grp
 
 from yali4.constants import consts
+import yali4.gui.context as ctx
 
 def cp(s, d):
     src = os.path.join(consts.target_dir, s)
     dst = os.path.join(consts.target_dir, d)
+    ctx.debugger.log("Copying from '%s' to '%s'" % (src,dst))
     shutil.copyfile(src, dst)
 
 def touch(f, m=0644):
@@ -59,7 +61,8 @@
     os.system("/usr/bin/mknod %s/dev/null c 1 3" % consts.target_dir)
 
 def setTimeZone():
-    cp("usr/share/zoneinfo/%s" % ctx.installdata.timezone, "etc/localtime")
+    os.system("rm -rf %s" % os.path.join(consts.target_dir, "etc/localtime"))
+    cp("usr/share/zoneinfo/%s" % ctx.installData.timezone, "etc/localtime")
     return True
 
 def migrate_xorg_conf(keymap="trq"):


Uludag-commits mesaj listesiyle ilgili daha fazla bilgi