You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
distros-overlay/sys-apps/calculate-update/files/calculate-update-3.2.0_alph...

18 lines
683 B

diff --git update/update.py update/update.py
index ef6fe02..a9b3588 100644
--- update/update.py
+++ update/update.py
@@ -514,7 +514,11 @@ class Update:
self.printWARNING(str(e))
self.printWARNING(_("Re-fetch {name} repository"
).format(name=repname))
- removeDir(rpath)
+ try:
+ removeDir(rpath)
+ except OSError as e:
+ raise UpdateError(_("Permission denied to change "
+ "{repname} repository").format(repname=repname))
self._syncRepository(name,url,rpath,revision,branch)
return True