Skip to content

Commit

Permalink
generate_packages/repology: specify git url in isdevelop pkgs, and in…
Browse files Browse the repository at this point in the history
… class-wide urls (#21)
  • Loading branch information
wdconinc authored Aug 14, 2024
1 parent 0aa5433 commit cb5c213
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generate_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def main():
# Is there a develop branch?
if version.isdevelop():
meta["branch"] = str(version)
if hasattr(pkg, "git"):
meta["downloads"] = [pkg.git]
else:
meta["downloads"] = [url]

Expand Down Expand Up @@ -213,6 +215,10 @@ def main():
except:
urls = pkg.all_urls

# Add git repository to urls if specified
if hasattr(pkg, "git"):
urls.append(pkg.git)

# Add to repology
repology_pkg = {
"name": pkg.name,
Expand Down

0 comments on commit cb5c213

Please sign in to comment.