@@ -83,7 +83,7 @@ def write_simple_api(publication):
8383 publication (pulpcore.plugin.models.Publication): A publication to generate metadata for
8484
8585 """
86- simple_dir = 'simple'
86+ simple_dir = 'simple/ '
8787 os .mkdir (simple_dir )
8888 project_names = (
8989 python_models .PythonPackageContent .objects .filter (
@@ -97,7 +97,7 @@ def write_simple_api(publication):
9797 index_names = [(name , canonicalize_name (name )) for name in project_names ]
9898
9999 # write the root index, which lists all of the projects for which there is a package available
100- index_path = '{simple_dir}/ index.html' .format (simple_dir = simple_dir )
100+ index_path = '{simple_dir}index.html' .format (simple_dir = simple_dir )
101101 with open (index_path , 'w' ) as index :
102102 context = Context ({'projects' : index_names })
103103 template = Template (simple_index_template )
@@ -111,7 +111,7 @@ def write_simple_api(publication):
111111 index_metadata .save ()
112112
113113 for (name , canonical_name ) in index_names :
114- project_dir = '{simple_dir}/ {name}' .format (simple_dir = simple_dir , name = canonical_name )
114+ project_dir = '{simple_dir}{name}/ ' .format (simple_dir = simple_dir , name = canonical_name )
115115 os .mkdir (project_dir )
116116
117117 packages = python_models .PythonPackageContent .objects .filter (name = name )
@@ -132,7 +132,7 @@ def write_simple_api(publication):
132132 path = "../../{}" .format (package .filename )
133133 package_detail_data .append ((package .filename , path , checksum ))
134134
135- metadata_relative_path = '{project_dir}/ index.html' .format (project_dir = project_dir )
135+ metadata_relative_path = '{project_dir}index.html' .format (project_dir = project_dir )
136136
137137 with open (metadata_relative_path , 'w' ) as simple_metadata :
138138 context = Context ({
0 commit comments