Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=ce6e5363e591c5dca88523d3f576532d7ef6d2fb
commit ce6e5363e591c5dca88523d3f576532d7ef6d2fb Author: Miklos Vajna <[email protected]> Date: Thu Mar 12 14:04:20 2009 +0100 syncpkgcd: implement __get_conf_list() diff --git a/syncpkgd/syncpkgd.py b/syncpkgd/syncpkgd.py index 93c310c..7c697fc 100644 --- a/syncpkgd/syncpkgd.py +++ b/syncpkgd/syncpkgd.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -import sys, getopt, os, pwd, hashlib, time, base64, re, pickle, signal +import sys, getopt, os, pwd, hashlib, time, base64, re, pickle, signal, glob sys.path.append("/etc/syncpkgd") from SimpleXMLRPCServer import SimpleXMLRPCServer from dconfig import config @@ -61,6 +61,18 @@ class Actions: self.__log(login, pkg, "package rejected by the server") return False + def __get_conf_list(self): + """build a list of conf files to transfer""" + confs = ['.repoman.conf', '.pacman-g2/repos/*'] + home = pwd.getpwnam(options.uid).pw_dir + + l = [] + for i in confs: + res = glob.glob(os.path.join(home, i)) + for j in res: + l.append(j.replace(home + os.path.sep, '')) + return l + def request_conf(self): """request the up to date repo list""" try: _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
