|
|
|
@ -169,10 +169,10 @@ class Update:
|
|
|
|
|
branch, cb_progress=self.setProgress)
|
|
|
|
|
removeDir(rpath)
|
|
|
|
|
os.rename(rpath_new, rpath)
|
|
|
|
|
except OSError:
|
|
|
|
|
raise UpdateError(_("Permission denied to modify the "
|
|
|
|
|
except OSError as e:
|
|
|
|
|
raise UpdateError(_("Failed to modify the "
|
|
|
|
|
"{repname} repository").format(
|
|
|
|
|
repname=repname))
|
|
|
|
|
repname=repname)+":"+str(e))
|
|
|
|
|
finally:
|
|
|
|
|
if path.exists(rpath_new):
|
|
|
|
|
removeDir(rpath_new)
|
|
|
|
|