Skip to content

Commit

Permalink
Merge pull request #34 from MilhouseVH/crosslink
Browse files Browse the repository at this point in the history
system update - fix cross-device linking
  • Loading branch information
chewitt committed Oct 28, 2016
2 parents 41e55ce + 9fc9c61 commit c364334
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resources/lib/modules/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import oeWindows
import threading
import subprocess
import shutil
from xml.dom import minidom


Expand Down Expand Up @@ -771,7 +772,7 @@ def do_autoupdate(self, listItem=None, silent=False):
self.update_file = self.update_file.split('/')[-1]
if self.struct['update']['settings']['UpdateNotify']['value'] == '1':
self.oe.notify(self.oe._(32363), self.oe._(32366))
os.rename(self.oe.TEMP + 'update_file', self.LOCAL_UPDATE_DIR + self.update_file)
shutil.move(self.oe.TEMP + 'update_file', self.LOCAL_UPDATE_DIR + self.update_file)
subprocess.call('sync', shell=True, stdin=None, stdout=None, stderr=None)
if silent == False:
self.oe.winOeMain.close()
Expand Down

0 comments on commit c364334

Please sign in to comment.