diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2016-10-17 15:20:29 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2016-10-17 15:23:13 +0200 |
commit | 37188603b52a3dac23df229ada82c7da0c3d9c00 (patch) | |
tree | f7df7af7edcd8ca49fe1354883537013d020319f /scripts/pkgmaint.py | |
parent | 85866796a40923708f6b868c32ddc2f2f4417d1d (diff) |
Make maintenance scripts installable
Add wrappers for the maintenance scripts to the setuptools
configuration.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'scripts/pkgmaint.py')
-rwxr-xr-x | scripts/pkgmaint.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/scripts/pkgmaint.py b/scripts/pkgmaint.py deleted file mode 100755 index 3ad9ed8..0000000 --- a/scripts/pkgmaint.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python3 - -import time - -import aurweb.db - - -def main(): - conn = aurweb.db.Connection() - - limit_to = int(time.time()) - 86400 - conn.execute("DELETE FROM PackageBases WHERE " + - "SubmittedTS < ? AND PackagerUID IS NULL", [limit_to]) - - conn.commit() - conn.close() - - -if __name__ == '__main__': - main() |