Skip to content

Commit 1ce69fb

Browse files
committed
pg-sourcehut: set up dummy GET url to include project name in distname
fixes https://trac.macports.org/ticket/68446
1 parent c2b184f commit 1ce69fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_resources/port1.0/group/sourcehut-1.0.tcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ default sourcehut.homepage {${sourcehut.instance}/~${sourcehut.author}/${sourceh
1313

1414
# Later code assumes that sourcehut.master_sites is a simple string, not a list.
1515
options sourcehut.master_sites
16-
default sourcehut.master_sites {${sourcehut.homepage}/archive/}
16+
default sourcehut.master_sites {${sourcehut.homepage}/archive/${git.branch}${extract.suffix}?dummy=}
1717

1818
options sourcehut.livecheck.branch
1919
default sourcehut.livecheck.branch master
@@ -39,8 +39,8 @@ proc sourcehut.setup {srht_author srht_project srht_version {srht_tag_prefix ""}
3939
default homepage ${sourcehut.homepage}
4040
git.url ${sourcehut.homepage}
4141
git.branch [join ${sourcehut.tag_prefix}]${sourcehut.version}[join ${sourcehut.tag_suffix}]
42-
default master_sites {${sourcehut.master_sites}}
43-
default distname {${git.branch}}
42+
default master_sites ${sourcehut.master_sites}
43+
default distname {${sourcehut.project}-${git.branch}}
4444
default worksrcdir {${sourcehut.project}-${git.branch}}
4545

4646
# If the version is composed entirely of hex characters, and is at least 7

0 commit comments

Comments
 (0)