Alphabetize functions.
This commit is contained in:
parent
c8dc9bbc14
commit
097cb07421
1 changed files with 7 additions and 7 deletions
14
fdroidapk.py
14
fdroidapk.py
|
@ -71,13 +71,6 @@ def get_apk_url(package_name):
|
||||||
apk_url = aa[0]['href']
|
apk_url = aa[0]['href']
|
||||||
return apk_url
|
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):
|
def ls_packages(path):
|
||||||
packages = set()
|
packages = set()
|
||||||
items = path.listdir()
|
items = path.listdir()
|
||||||
|
@ -89,6 +82,13 @@ def ls_packages(path):
|
||||||
packages.add(package)
|
packages.add(package)
|
||||||
return sorted(packages)
|
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
|
@pipeable.ctrlc_return1
|
||||||
def fpk_argparse(args):
|
def fpk_argparse(args):
|
||||||
destination = pathclass.Path(args.destination)
|
destination = pathclass.Path(args.destination)
|
||||||
|
|
Loading…
Reference in a new issue