aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-09-22 20:22:24 +0530
committersinanmohd <sinan@sinanmohd.com>2024-09-22 20:22:24 +0530
commita77616c52c3b1720355477a14055e681235d34b7 (patch)
tree27d518e6508f84603b358f5882d5e986e3c7c34b /bin
parent12e22e7b12584847f81ab3cee10bf131df07c4d3 (diff)
bin/nixpkgs_drv_pname: add --db flag
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nixpkgs_drv_pname.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/nixpkgs_drv_pname.py b/bin/nixpkgs_drv_pname.py
index 7209537..24a8d16 100755
--- a/bin/nixpkgs_drv_pname.py
+++ b/bin/nixpkgs_drv_pname.py
@@ -87,6 +87,7 @@ def args_get():
parser = argparse.ArgumentParser()
parser.add_argument('-r', '--ref', default="master")
parser.add_argument('-a', '--arch', default="x86_64-linux")
+ parser.add_argument('-d', '--db', default="drv_pname_dag.db")
return parser.parse_args()
if __name__ == '__main__':
@@ -101,7 +102,7 @@ if __name__ == '__main__':
if proc.stdout is None:
raise EOFError('Failed to evaluate nixpkgs')
- con = sqlite3.connect('drv_pname_dag.db')
+ con = sqlite3.connect(args.db)
cur = con.cursor()
cur.execute("""
CREATE TABLE IF NOT EXISTS pnames (