From 7307d64c0ca5f86f3967cf701f2cb7d276be0a2a Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 11 May 2020 15:15:29 +0200 Subject: [PATCH] alpine 3.11 --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index b6638bb..6b10fc5 100644 --- a/app.py +++ b/app.py @@ -10,14 +10,14 @@ class Store: def __init__(self, dbo): self.db = dbo - def add_version(self, pkg, version, bdate, branch='v3.10', arch='x86_64'): + def add_version(self, pkg, version, bdate, branch='v3.11', arch='x86_64'): pkg_key = json.dumps((pkg, branch, arch)) versions = json.loads(self.db.get(pkg_key, "{}")) if bdate not in versions: versions[bdate] = version self.db[pkg_key] = json.dumps(versions) - def get_feed(self, pkgs=None, branch='v3.10', arch='x86_64'): + def get_feed(self, pkgs=None, branch='v3.11', arch='x86_64'): items = [] if not pkgs: pkgs = ['bash'] @@ -32,7 +32,7 @@ db = dbm.open('/data/cache', 'c') pkg_store = Store(db) -def get_release(pkg, branch="v3.10", arch="x86_64"): +def get_release(pkg, branch="v3.11", arch="x86_64"): req = requests.get( "https://pkgs.alpinelinux.org/packages?name={}&branch={}&arch={}".format( pkg,