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:
authorJon Turney <jon.turney@dronecode.org.uk>2022-11-05 16:20:13 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2022-11-26 19:16:01 +0300
commitd1bc9c6f4bffe84aa53b773148d8f8cf5cab9f48 (patch)
tree7917132bbf8693528e2c8f0595177a26002490ff /calm/pkg2html.py
parent6087edd6a7097ec102f3a15647beda0099e3ebdf (diff)
Rationalize path handling a little bit
Diffstat (limited to 'calm/pkg2html.py')
-rwxr-xr-xcalm/pkg2html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/calm/pkg2html.py b/calm/pkg2html.py
index 4924847..2194a05 100755
--- a/calm/pkg2html.py
+++ b/calm/pkg2html.py
@@ -464,7 +464,7 @@ def write_arch_listing(args, packages, arch):
listings = []
for to in packages[p].tarfiles.values():
- tn = to.fn
+ tn = to.repopath.fn
fver = re.sub(r'\.tar.*$', '', tn)
listing = os.path.join(dirpath, fver)
@@ -492,7 +492,7 @@ def write_arch_listing(args, packages, arch):
<h1><a href="/packages/summary/%s.html">%s</a>: %s</h1>
<pre>''' % (p, desc, p, p, desc)), file=f)
- tf = os.path.join(args.rel_area, to.path, to.fn)
+ tf = to.repopath.abspath(args.rel_area)
if not os.path.exists(tf):
# this shouldn't happen with a full mirror
logging.error("tarfile %s not found" % (tf))