From e46fb40a61366795e65a1ac7411799515294c98a Mon Sep 17 00:00:00 2001 From: Antheas Kapenekakis Date: Tue, 13 Aug 2024 16:15:24 +0300 Subject: [PATCH] fixup formatting to be python compatible --- src/rechunk/fedora.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/rechunk/fedora.py b/src/rechunk/fedora.py index c850bef..d29cf25 100644 --- a/src/rechunk/fedora.py +++ b/src/rechunk/fedora.py @@ -12,6 +12,7 @@ STARTSEP = "M2Dqm7H6" ENDSEP = "7mhjAuF8" + def get_packages(dir: str): packages = [] @@ -26,7 +27,10 @@ def get_packages(dir: str): "rpm", "-qa", "--queryformat", - f"{STARTSEP}\n[%{FILESIZES} %{FILENAMES}\n]{ENDSEP}%{NAME} %{NEVRA} %{VERSION} %{RELEASE} %{SIZE}\n", + STARTSEP + + "\n[%{FILESIZES} %{FILENAMES}\n]" + + ENDSEP + + "%{NAME} %{NEVRA} %{VERSION} %{RELEASE} %{SIZE}\n", "--changes", "--dbpath", dir, @@ -36,7 +40,7 @@ def get_packages(dir: str): line = eline.decode("utf-8") if line.startswith(ENDSEP): - data = line[len(ENDSEP):].split(" ") + data = line[len(ENDSEP) :].split(" ") name = data[0] nevra = data[1] version = data[2]