Skip to content

Commit

Permalink
Merge branch 'stable' into version-variation
Browse files Browse the repository at this point in the history
  • Loading branch information
rudra-iitm committed Jan 10, 2024
2 parents 47164c7 + bc7397d commit 8e57492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions updatesnap/SnapModule/snapmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ def _is_gitlab(self, repository):
""" Evaluates the URI of a repository and returns an URI
object with it, but only if it is a Gitlab URI. """
uri = self._get_uri(repository, 3)
# Check for gitlab instance used by debian
if "salsa" in uri.netloc:
return uri
if "gitlab" not in uri.netloc:
return None
return uri
Expand Down
2 changes: 2 additions & 0 deletions updatesnap/unittests.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ def test_github_tags_download(self):
assert isinstance(data, list)
# ensure that the known tags are in the list
tags = get_gnome_calculator_tags()["https://gitlab.gnome.org/GNOME/gnome-calculator.git"]
# retrieve latest tags but checks only last tags-length data elements
data = data[len(data)-len(tags):]
for tag in data:
found = False
for tag2 in tags:
Expand Down

0 comments on commit 8e57492

Please sign in to comment.