~bostjan.mejak/update-manager/realm

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeViewKDE.py

  • Committer: Marc Deslauriers
  • Date: 2012-02-16 15:56:52 UTC
  • Revision ID: marc.deslauriers@canonical.com-20120216155652-013wxnobjracsagv
DistUpgrade/DistUpgradeViewKDE.py: fix regression caused by improper
return value handling. (LP: #933225)

Show diffs side-by-side

added added

removed removed

Lines of Context:
494
494
        self.app.connect(self.window_main.showTerminalButton, SIGNAL("clicked()"), self.showTerminal)
495
495
 
496
496
        #kdesu requires us to copy the xauthority file before it removes it when Adept is killed
497
 
        copyXauth = tempfile.mkstemp("", "adept")
 
497
        fd, copyXauth = tempfile.mkstemp("", "adept")
498
498
        if 'XAUTHORITY' in os.environ and os.environ['XAUTHORITY'] != copyXauth:
499
499
            shutil.copy(os.environ['XAUTHORITY'], copyXauth)
500
500
            os.environ["XAUTHORITY"] = copyXauth