mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Rework tupkgupdate scripts.
Most work is done on tupkgupdate. Fix some indentation problems. Add some whitespace for style points. Add a new --config switch to specify a config file path. Add a new usage() function that documents the switches more clearly. Delete all gensync code. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
d210584afd
commit
b513130f3a
3 changed files with 86 additions and 54 deletions
|
@ -1,14 +1,20 @@
|
|||
#!/usr/bin/python -O
|
||||
|
||||
import re, os, sys, pacman, getopt, glob
|
||||
import MySQLdb, MySQLdb.connections
|
||||
import re
|
||||
import os
|
||||
import sys
|
||||
import pacman
|
||||
import getopt
|
||||
import glob
|
||||
import MySQLdb
|
||||
import MySQLdb.connections
|
||||
import ConfigParser
|
||||
|
||||
###########################################################
|
||||
# Deal with configuration
|
||||
###########################################################
|
||||
|
||||
conffile = '/home/aur/tupkgs.conf'
|
||||
conffile = '/etc/tupkgs.conf'
|
||||
|
||||
if not os.path.isfile(conffile):
|
||||
print "Error: cannot access config file ("+conffile+")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue