Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'calm/pkg2html.py')
-rwxr-xr-xcalm/pkg2html.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/calm/pkg2html.py b/calm/pkg2html.py
index 43591ff..5a3f4ac 100755
--- a/calm/pkg2html.py
+++ b/calm/pkg2html.py
@@ -293,10 +293,11 @@ def update_package_listings(args, packages):
print('<br><br>', file=f)
if po.kind == package.Kind.source:
- repo = '/git/cygwin-packages/%s.git' % pn
- if os.path.exists(repo):
- repo_browse_url = '/cgit/cygwin-packages/%s/' % pn
- print('<span class="detail">packaging repository</span>: <a href="%s">%s.git</a>' % (repo_browse_url, pn), file=f)
+ if args.repodir:
+ repo = os.path.join(args.repodir, '%s.git' % pn)
+ if os.path.exists(repo):
+ repo_browse_url = '/cgit/cygwin-packages/%s/' % pn
+ print('<span class="detail">packaging repository</span>: <a href="%s">%s.git</a>' % (repo_browse_url, pn), file=f)
print('<ul>', file=f)
for arch in sorted(packages):