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:
Loui Chang 2008-11-24 05:08:04 -05:00
parent d210584afd
commit b513130f3a
3 changed files with 86 additions and 54 deletions

View file

@ -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+")"