Check all URL parsed args before installing a package

This commit is contained in:
Ivan Kravets
2017-12-15 23:36:23 +02:00
parent 56aeff87dd
commit 269935726d

View File

@ -609,7 +609,7 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
# avoid circle dependencies
if not self.INSTALL_HISTORY:
self.INSTALL_HISTORY = []
history_key = "%s-%s" % (name, requirements) if requirements else name
history_key = "%s-%s-%s" % (name, requirements or "", url or "")
if history_key in self.INSTALL_HISTORY:
return package_dir
self.INSTALL_HISTORY.append(history_key)