Skip to content

Commit a327bd1

Browse files
committed
support publishing to local storage (again)
at least with aptly_1.4.0+ds1-4+b4 (found in Debian) 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 a327bd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)