From 097cb074215de621b299c0579e7db4c89546371a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 22 Sep 2021 20:26:37 -0700 Subject: [PATCH] Alphabetize functions. --- fdroidapk.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fdroidapk.py b/fdroidapk.py index 2d56199..3eea220 100644 --- a/fdroidapk.py +++ b/fdroidapk.py @@ -71,13 +71,6 @@ def get_apk_url(package_name): apk_url = aa[0]['href'] return apk_url -def normalize_package_name(package_name): - package_name = package_name.strip() - # If it happens to be a URL. - package_name = package_name.strip('/') - package_name = package_name.rsplit('/', 1)[-1] - return package_name - def ls_packages(path): packages = set() items = path.listdir() @@ -89,6 +82,13 @@ def ls_packages(path): packages.add(package) return sorted(packages) +def normalize_package_name(package_name): + package_name = package_name.strip() + # If it happens to be a URL. + package_name = package_name.strip('/') + package_name = package_name.rsplit('/', 1)[-1] + return package_name + @pipeable.ctrlc_return1 def fpk_argparse(args): destination = pathclass.Path(args.destination)