Disable app updates by adding disable file in folder.

This commit is contained in:
voussoir 2024-03-31 18:57:07 -07:00
parent bcac3d716e
commit 722e62bb20

View file

@ -53,7 +53,7 @@ def ls_packages(path):
packages = set()
items = path.listdir()
for item in items:
if item.is_dir and '.' in item.basename:
if item.is_dir and '.' in item.basename and not item.with_child('disable').exists:
packages.add(item.basename)
elif item.is_file and item.extension == 'apk':
package = item.basename.split('-')[0]