From 523c5eca8193342bbf1b69387b36c44af1a202ee Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 9 Oct 2021 14:01:50 +0200 Subject: [PATCH] remote --- __init__.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index 66975c6..b006207 100755 --- a/__init__.py +++ b/__init__.py @@ -1,9 +1,11 @@ #! /usr/bin/env python3 -import arguments -import repository import sys +import arguments +import remote +import repository + def build(repository, arguments): print('Build:') @@ -31,8 +33,12 @@ def info(repository, arguments): print(repository) -def sync(repository, arguments): +def sync(repository, args): print('Sync:') + r = remote.Remote(args) + print(r) + for architecture in args[arguments.ARCHITECTURES]: + print(r.fetch_latest_distribution(architecture)) # TODO prepare temporary directory print('prepareā€¦') # TODO fetch