Fix a few Intellij IDEA warnings
This commit is contained in:
@@ -7,7 +7,7 @@ from common.git import Git
|
||||
"""Fetch Debian versions by parsing news in www.debian.org source repository."""
|
||||
|
||||
|
||||
def extract_major_versions(product: endoflife.Product, repo_dir: Path) -> None:
|
||||
def extract_major_versions(p: endoflife.Product, repo_dir: Path) -> None:
|
||||
child = run(
|
||||
f"grep -RhE -A 1 '<define-tag pagetitle>Debian [0-9]+.+</q> released' {repo_dir}/english/News "
|
||||
f"| cut -d '<' -f 2 "
|
||||
@@ -22,11 +22,11 @@ def extract_major_versions(product: endoflife.Product, repo_dir: Path) -> None:
|
||||
version = line.split(" ")[1]
|
||||
is_release_line = False
|
||||
else:
|
||||
product.declare_version(version, dates.parse_date(line))
|
||||
p.declare_version(version, dates.parse_date(line))
|
||||
is_release_line = True
|
||||
|
||||
|
||||
def extract_point_versions(product: endoflife.Product, repo_dir: Path) -> None:
|
||||
def extract_point_versions(p: endoflife.Product, repo_dir: Path) -> None:
|
||||
child = run(
|
||||
f"grep -Rh -B 10 '<define-tag revision>' {repo_dir}/english/News "
|
||||
"| grep -Eo '(release_date>(.*)<|revision>(.*)<)' "
|
||||
@@ -38,7 +38,7 @@ def extract_point_versions(product: endoflife.Product, repo_dir: Path) -> None:
|
||||
|
||||
for line in child.stdout.decode("utf-8").strip().split("\n"):
|
||||
(date, version) = line.split(' ')
|
||||
product.declare_version(version, dates.parse_date(date))
|
||||
p.declare_version(version, dates.parse_date(date))
|
||||
|
||||
|
||||
product = endoflife.Product("debian")
|
||||
|
||||
Reference in New Issue
Block a user