Alphabetize functions.

This commit is contained in:
voussoir 2021-09-22 20:26:37 -07:00
parent c8dc9bbc14
commit 097cb07421
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -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)