From b513130f3ac9f291326a3bcf455252c0c31c0e71 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Mon, 24 Nov 2008 05:08:04 -0500 Subject: 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 --- tupkg/update/tupkgupdate-lite | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tupkg/update/tupkgupdate-lite') diff --git a/tupkg/update/tupkgupdate-lite b/tupkg/update/tupkgupdate-lite index f0fe0225..51e40917 100755 --- a/tupkg/update/tupkgupdate-lite +++ b/tupkg/update/tupkgupdate-lite @@ -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+")" -- cgit v1.2.3-24-g4f1b