addrepo: Handle all pisi errors occurred when updating the new repo
BUG:FIXED:18309
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ NB: We support only local files (e.g., /a/b/c) and http:// URIs at the moment
|
|||||||
if not ctx.get_option('no_fetch'):
|
if not ctx.get_option('no_fetch'):
|
||||||
try:
|
try:
|
||||||
pisi.api.update_repo(name)
|
pisi.api.update_repo(name)
|
||||||
except (pisi.fetcher.FetchError, IOError):
|
except (pisi.Error, IOError):
|
||||||
warning = _("%s repository could not be reached. Removing %s from system.") % (name, name)
|
warning = _("%s repository could not be reached. Removing %s from system.") % (name, name)
|
||||||
self.warn_and_remove(warning, name)
|
self.warn_and_remove(warning, name)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user