Skip to content

Commit 68f7c61

Browse files
committed
Add method to get the snapshot of given component
1 parent 2656580 commit 68f7c61

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

aptly/publisher/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ def __init__(self, client, storage=""):
2626
self.storage = storage
2727
self.timestamp = int(time.time())
2828

29+
def get_component_snapshot(self, component):
30+
if component in self.components.keys():
31+
return self.components[component][0]
32+
return ""
33+
2934
def publish(self, distribution, storage=""):
3035
"""
3136
Get or create publish

0 commit comments

Comments
 (0)