summaryrefslogtreecommitdiffstats
path: root/tupkg/update/tupkgupdate-lite
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-11-24 05:08:04 -0500
committerLoui Chang <louipc.ist@gmail.com>2008-11-26 23:04:28 -0500
commitb513130f3ac9f291326a3bcf455252c0c31c0e71 (patch)
tree68de308de7d3829d10078c3f0fac5333114424df /tupkg/update/tupkgupdate-lite
parentd210584afd082b75f5fc033730f063a311e9722e (diff)
downloadaurweb-b513130f3ac9f291326a3bcf455252c0c31c0e71.tar.xz
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>
Diffstat (limited to 'tupkg/update/tupkgupdate-lite')
-rwxr-xr-xtupkg/update/tupkgupdate-lite12
1 files changed, 9 insertions, 3 deletions
diff --git a/tupkg/update/tupkgupdate-lite b/tupkg/update/tupkgupdate-lite
index f0fe022..51e4091 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+")"