From a327bd154b2fc4a3a3eeae8844de5c4ee0e5cc14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 14 Sep 2021 13:16:10 +0200 Subject: [PATCH] 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: https://github.com/tcpcloud/python-aptly/issues/29 --- aptly/publisher/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aptly/publisher/__init__.py b/aptly/publisher/__init__.py index ce7fb0b..6b4984b 100644 --- a/aptly/publisher/__init__.py +++ b/aptly/publisher/__init__.py @@ -245,7 +245,7 @@ def __init__(self, client, distribution, timestamp=None, recreate=False, load=Fa self.name = '%s/%s' % (self.prefix or '.', self.distribution) self.full_name = "{}{}{}".format(self.storage+":" if self.storage else - "", self.prefix+"/" if self.prefix else + "/", self.prefix + "/" if self.prefix else "", self.distribution) if not timestamp: