* ask&update repo after adding. we're user-friendly!
This commit is contained in:
@@ -633,6 +633,8 @@ NB: We support only local files (e.g., /a/b/c) and http:// URIs at the moment
|
||||
name = self.args[0]
|
||||
indexuri = self.args[1]
|
||||
pisi.api.add_repo(name, indexuri)
|
||||
if ctx.ui.confirm(_('Update PISI database for repository %s?') % name):
|
||||
pisi.api.update_repo(repo)
|
||||
self.finalize()
|
||||
else:
|
||||
self.help()
|
||||
|
||||
Reference in New Issue
Block a user