diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-29 21:12:13 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-29 21:12:13 -0300 |
commit | 4e5eaad9126a81d549e2c329caf82c2042e3c2db (patch) | |
tree | 96f9d140cb6a185abe168f2268ebf60ebbd9265d /extra/xbs-lukeshu/db-list-nonfree.py | |
parent | d716bf39b475030c5b0ba798f01172a33c305f37 (diff) |
fix xbs usage and add db-list-nonfree.py suppportcoadde/dbscripts-ng
Diffstat (limited to 'extra/xbs-lukeshu/db-list-nonfree.py')
-rwxr-xr-x | extra/xbs-lukeshu/db-list-nonfree.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/extra/xbs-lukeshu/db-list-nonfree.py b/extra/xbs-lukeshu/db-list-nonfree.py deleted file mode 100755 index a486fa5..0000000 --- a/extra/xbs-lukeshu/db-list-nonfree.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python2 -#-*- encoding: utf-8 -*- -from filter import * -import argparse - -if __name__ == "__main__": - parser = argparse.ArgumentParser( - prog="nonfree_in_db", - description="Cleans nonfree files on repo",) - - parser.add_argument("-k", "--blacklist-file", type=str, - help="File containing blacklisted names", - required=True,) - - parser.add_argument("-b", "--database", type=str, - help="dabatase to clean", - required=True,) - - args=parser.parse_args() - - if not (args.blacklist_file and args.database): - parser.print_help() - exit(1) - - blacklist=listado(args.blacklist_file) - pkgs=get_pkginfo_from_db(args.database) - - print(" ".join([pkg["name"] for pkg in pkgs if pkg["name"] in blacklist])) |