Skip to content

Commit 5ba0185

Browse files
committed
support publishing to local storage (again)
at least with aptly... doing a simple "PUT /api/publish/local-repo" or "DELETE /api/publish/local-repo" will result in a 404. the proper way is to either use a storage specification ":." or leave it empty (but keep the slash intact) Closes: #29
1 parent 0cf9f76 commit 5ba0185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aptly/publisher/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def __init__(self, client, distribution, timestamp=None, recreate=False, load=Fa
245245

246246
self.name = '%s/%s' % (self.prefix or '.', self.distribution)
247247
self.full_name = "{}{}{}".format(self.storage+":" if self.storage else
248-
"", self.prefix+"/" if self.prefix else
248+
"/", self.prefix+"/" if self.prefix else
249249
"", self.distribution)
250250

251251
if not timestamp:

0 commit comments

Comments
 (0)