From 132284ee7350e59c0f3e9204637cdb933b9b7ebe Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 16 Sep 2022 16:01:37 +0100 Subject: Drop unused remove arg to read_one_package Unused since d8869d2e removed the need to notice when override.hint was being removed. --- calm/package.py | 9 +++------ calm/uploads.py | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/calm/package.py b/calm/package.py index 1c658e1..dd137fb 100755 --- a/calm/package.py +++ b/calm/package.py @@ -206,10 +206,7 @@ def clean_hints(p, hints, warnings): # (return True if problems, False otherwise) # -def read_package_dir(packages, basedir, dirpath, files, remove=None, upload=False): - if remove is None: - remove = [] - +def read_package_dir(packages, basedir, dirpath, files, upload=False): relpath = os.path.relpath(dirpath, basedir) # the package name is always the directory name @@ -260,7 +257,7 @@ def read_package_dir(packages, basedir, dirpath, files, remove=None, upload=Fals for kind in Kind: # only create a package if there's archives for it to contain if fl[kind]: - result = read_one_package(packages, p, relpath, dirpath, fl[kind] + fl['all'], remove, kind, upload) or result + result = read_one_package(packages, p, relpath, dirpath, fl[kind] + fl['all'], kind, upload) or result # warn about unexpected files, including tarfiles which don't match the # package name @@ -274,7 +271,7 @@ def read_package_dir(packages, basedir, dirpath, files, remove=None, upload=Fals # # read a single package # -def read_one_package(packages, p, relpath, dirpath, files, remove, kind, strict): +def read_one_package(packages, p, relpath, dirpath, files, kind, strict): warnings = False if not re.match(r'^[\w\-._+]*$', p): diff --git a/calm/uploads.py b/calm/uploads.py index 818d065..2f98fe5 100644 --- a/calm/uploads.py +++ b/calm/uploads.py @@ -278,7 +278,7 @@ def scan(scandir, m, all_packages, arch, args): # read and validate package if files: - if package.read_package_dir(packages, homedir, dirpath, files, remove=removed_files, upload=True): + if package.read_package_dir(packages, homedir, dirpath, files, upload=True): error = True # always consider timestamp as checked during a dry-run, so it is never -- cgit v1.2.3