Skip to content

Commit

Permalink
Merge pull request #85 from webrian/main
Browse files Browse the repository at this point in the history
Consider path when building up ilicache, fixes opengisch/QgisModelBaker#861
  • Loading branch information
signedav authored Feb 28, 2024
2 parents 40d271c + 19ba2fa commit 9a71c47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modelbaker/iliwrapper/ilicache.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ def download_repository(self, url):
Downloads the informationfile (default: ilimodels.xml) and ilisite.xml files from the provided url
and updates the local cache.
"""
netloc = urllib.parse.urlsplit(url)[1] if not os.path.isdir(url) else url
parsed_url = urllib.parse.urlparse(url)
netloc = parsed_url.netloc + parsed_url.path if not os.path.isdir(url) else url

information_file_url = self.file_url(url, self.information_file)
ilisite_url = self.file_url(url, "ilisite.xml")
Expand Down

0 comments on commit 9a71c47

Please sign in to comment.