Skip to content

Commit b848714

Browse files
authored
Merge pull request #273 from gerrod3/6792
First fix for pip install issue #6792
2 parents c55b90d + 1d01c1a commit b848714

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGES/6792.doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added "index.html" to the relative_path field for both project_metadata and index_metadata. Added a "/" to fix the link in the simple_index_template.

pulp_python/app/tasks/publish.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</head>
2323
<body>
2424
{% for name, canonical_name in projects %}
25-
<a href="{{ canonical_name }}">{{ name }}</a><br/>
25+
<a href="{{ canonical_name }}/">{{ name }}</a><br/>
2626
{% endfor %}
2727
</body>
2828
</html>
@@ -101,7 +101,7 @@ def write_simple_api(publication):
101101
index.write(template.render(context))
102102

103103
index_metadata = models.PublishedMetadata.create_from_file(
104-
relative_path=simple_dir,
104+
relative_path=index_path,
105105
publication=publication,
106106
file=File(open(index_path, 'rb'))
107107
)
@@ -140,7 +140,7 @@ def write_simple_api(publication):
140140
simple_metadata.write(template.render(context))
141141

142142
project_metadata = models.PublishedMetadata.create_from_file(
143-
relative_path=project_dir,
143+
relative_path=metadata_relative_path,
144144
publication=publication,
145145
file=File(open(metadata_relative_path, 'rb'))
146146
)

0 commit comments

Comments
 (0)