This commit is contained in:
Marc Beninca 2024-03-15 10:32:19 +01:00
parent 3eccd76e8c
commit 2eb71e6412
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
14 changed files with 0 additions and 0 deletions

25
mrmp/remote.py Normal file
View file

@ -0,0 +1,25 @@
import os
import requests
import arguments
import hypertext
import repository
MAIN = 'https://repo.msys2.org'
class Remote(repository.Repository):
def __init__(self):
super().__init__(arguments.remote)
def get_file(self, path):
return requests.get(os.path.join(self.location, path)).content
def get_files(self, path):
return hypertext.HyperText(os.path.join(self.location, path)).links
def __str__(self):
lines = [
super().__str__(),
]
return os.linesep.join(lines)