Verified Commit d9762a74 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

dbscripts: Use relative imports and reformat

Using 'black'. No config needed for it (yet).
parent bd840347
......@@ -6,7 +6,8 @@ from argparse import ArgumentParser
from fcntl import LOCK_EX, flock
from pathlib import Path
from sys import argv, exit
from lib.dbwrite import generate_dbs
from .lib.dbwrite import generate_dbs
async def main(repo_from, repo_to, pkgbases) -> int:
......
......@@ -6,7 +6,8 @@ from argparse import ArgumentParser
from fcntl import LOCK_EX, flock
from pathlib import Path
from sys import argv, exit
from lib.dbwrite import generate_dbs
from .lib.dbwrite import generate_dbs
async def main(repo, pkgbases) -> int:
......
......@@ -4,12 +4,14 @@ import asyncio
import base64
import hashlib
import json
import pyalpm
from asyncio.subprocess import PIPE
from fcntl import LOCK_EX, flock
from pathlib import Path
from sys import argv, exit
from lib.dbwrite import generate_dbs
import pyalpm
from .lib.dbwrite import generate_dbs
def parse_pkginfo(pkginfo: str) -> dict:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment