From 222e3e9b4c17ce25b8579525326fbdab5536aaad Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 5 Feb 2022 14:29:56 +0800 Subject: [PATCH] remove old script maintained_in_aur --- scripts/maintained_in_aur | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 scripts/maintained_in_aur diff --git a/scripts/maintained_in_aur b/scripts/maintained_in_aur deleted file mode 100755 index 37dff6b..0000000 --- a/scripts/maintained_in_aur +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 -# MIT licensed -# Copyright (c) 2013-2017 lilydjwg , et al. - -'''show a list of packages maintained by someone in AUR''' - -import sys -import json -import urllib.request - -def main(user): - url = f'https://aur.archlinux.org/rpc.php?type=msearch&arg={user}' - res = urllib.request.urlopen(url) - if res.status != 200: - sys.exit(f'Error: {res.status} {res.reason}') - d = res.read().decode('utf-8') - d = json.loads(d) - print('\n'.join(sorted(pkg['Name'] for pkg in d['results']))) - -if __name__ == '__main__': - main(sys.argv[1]) if len(sys.argv) == 2 else \ - sys.exit('whose packages do you want to see?')