zypper_repository: Remove trailing "/". Identifies "logically" identical repos.

Example: ftp://download.nvidia.com/opensuse/12.2 == ftp://download.nvidia.com/opensuse/12.2/
This commit is contained in:
Alexander Gubin 2014-09-09 09:22:08 +02:00
parent 7f37439e17
commit e8b3a028ea

View file

@ -105,7 +105,7 @@ def repo_exists(module, **kwargs):
for k, v in realrepo.items():
if k in repocmp:
if v != repocmp[k]:
if v.rstrip("/") != repocmp[k].rstrip("/"):
return False
return True