mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-29 02:28:30 +08:00
33 lines
527 B
Python
Executable File
33 lines
527 B
Python
Executable File
#!/bin/python3
|
|
|
|
import os
|
|
import sqlite3
|
|
|
|
# create dir
|
|
if not os.path.exists("deb"):
|
|
os.mkdir("deb")
|
|
|
|
# create table
|
|
conn = sqlite3.connect("deb.db")
|
|
conn.execute(
|
|
"""
|
|
CREATE TABLE IF NOT EXISTS x86_64 (
|
|
name TEXT UNIQUE,
|
|
version TEXT,
|
|
url TEXT
|
|
);
|
|
"""
|
|
)
|
|
# conn.execute(
|
|
# """
|
|
# CREATE TABLE IF NOT EXISTS arm64 (
|
|
# name TEXT UNIQUE,
|
|
# version TEXT,
|
|
# url TEXT
|
|
# );
|
|
# """
|
|
# )
|
|
|
|
conn.commit()
|
|
conn.close()
|