Commit ce2c7272 authored by Romain Bignon's avatar Romain Bignon

Repository.retrieve_index: if 'repo_path' is None do not save it

parent 35374deb
......@@ -172,8 +172,8 @@ class Repository(object):
Retrieve the index file of this repository. It can use network
if this is a remote repository.
:param repo_path: path to save the downloaded index file.
:type repo_path: str
:param repo_path: path to save the downloaded index file (if any).
:type repo_path: str or None
"""
built = False
if self.local:
......@@ -202,7 +202,8 @@ class Repository(object):
self.build_index(self.localurl2path(), filename)
# Save the repository index in ~/.weboob/repositories/
self.save(repo_path, private=True)
if repo_path:
self.save(repo_path, private=True)
def retrieve_keyring(self, browser, keyring_path, progress):
# ignore local
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment