summaryrefslogtreecommitdiff
path: root/list_nonfree_in_db.py
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-04-17 01:56:43 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-04-17 01:56:43 -0400
commitff2983c207e6ab2a9381e20312355c42307187f6 (patch)
treeba4a2aca77c4f0b9963dab8754e5b1d58f711a88 /list_nonfree_in_db.py
parent6ad57ac9f185dcfd4e02174ffdaff9bca1b0516c (diff)
Give things more consistent names
Diffstat (limited to 'list_nonfree_in_db.py')
-rwxr-xr-xlist_nonfree_in_db.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/list_nonfree_in_db.py b/list_nonfree_in_db.py
deleted file mode 100755
index a486fa5..0000000
--- a/list_nonfree_in_db.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]))