diff --git a/.gitignore b/.gitignore index d131023..e2c4ff3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ data/github-local.json +data/deb.db deb/* !deb/index.html !deb/add.sh -!deb/del.sh -deb.db \ No newline at end of file +!deb/del.sh \ No newline at end of file diff --git a/check_downloader.py b/check_downloader.py index 31d5e24..cd22eec 100755 --- a/check_downloader.py +++ b/check_downloader.py @@ -23,7 +23,7 @@ def download(url, base_dir): def check_download(name, version, url, arch, base_dir="deb"): - conn = sqlite3.connect(base_dir + ".db") + conn = sqlite3.connect(f"data/{base_dir}.db") cur = conn.cursor() res = cur.execute( diff --git a/init_deb.py b/init_deb.py index 4731cd7..46d6288 100755 --- a/init_deb.py +++ b/init_deb.py @@ -1,4 +1,4 @@ -#!/bin/python3 +#!/usr/bin/env python3 import os import sqlite3 @@ -10,7 +10,7 @@ if not os.path.exists("deb/arm64"): os.makedirs("deb/arm64") # create table -conn = sqlite3.connect("deb.db") +conn = sqlite3.connect("data/deb.db") conn.execute( """ CREATE TABLE IF NOT EXISTS x86_64 (