From ce2c72722096ccfb595b62ba2f4e8253283a30c4 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 14 Nov 2019 19:27:56 +0100 Subject: [PATCH] Repository.retrieve_index: if 'repo_path' is None do not save it --- weboob/core/repositories.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/weboob/core/repositories.py b/weboob/core/repositories.py index 457e7fd202..56bcd89158 100644 --- a/weboob/core/repositories.py +++ b/weboob/core/repositories.py @@ -172,8 +172,8 @@ def retrieve_index(self, browser, repo_path): 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 @@ def retrieve_index(self, browser, repo_path): 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 -- GitLab