diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-02-07 12:30:30 -0600 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-02-07 12:30:30 -0600 |
commit | a5872f3b259b97125089866169d06aa9a4d78e23 (patch) | |
tree | 0ca6a91aab7e71d122059450f81e799221798ea9 | |
parent | b8619985289cde1591aa40c7df2c948fdbb8c30a (diff) |
moved config out from pato2
-rw-r--r-- | config.py | 32 | ||||
-rw-r--r-- | pato2.py | 37 |
2 files changed, 33 insertions, 36 deletions
diff --git a/config.py b/config.py new file mode 100644 index 0000000..e2fc350 --- /dev/null +++ b/config.py @@ -0,0 +1,32 @@ +time__ = commands.getoutput("date +%Y%m%d-%H:%M") + +# Mirror Parameters +mirror = "mirrors.eu.kernel.org" +mirrorpath = "::mirrors/archlinux" + +# Directories and files +## Optionals +path = home + "/parabolagnulinux.org" +docs = path + "/docs" +logdir = path + "/log" +## Must be defined +logname= logdir + "/" + time__ + "-repo-maintainer.log" +repodir= path + "/repo" +tmp = home + "/tmp" +archdb = tmp + "/db" + +# Repo, arch, and other folders to use for repo +repo_list = ("core", "extra", "community", "testing", "community-testing", "multilib") +dir_list = ("pool","sources") +arch_list = ("i686", "x86_64") +other = ("any",) + +# Output +output = True +verbose = False + +# Files +blacklist = docs + "/blacklist.txt" +whitelist = docs + "/whitelist.txt" +pending = docs + "/pending" +rsyncBlacklist = docs + "/rsyncBlacklist" @@ -24,47 +24,12 @@ """ +from repo_maintainer.config import * import tarfile, commands from glob import glob from user import home from os.path import isdir, isfile, realpath -# ---------- Config Variables Start Here ---------- # - -time__ = commands.getoutput("date +%Y%m%d-%H:%M") - -# Mirror Parameters -mirror = "mirrors.eu.kernel.org" -mirrorpath = "::mirrors/archlinux" - -# Directories and files -## Optionals -path = home + "/parabolagnulinux.org" -docs = path + "/docs" -logdir = path + "/log" -## Must be defined -logname= logdir + "/" + time__ + "-repo-maintainer.log" -repodir= path + "/repo" -tmp = home + "/tmp" -archdb = tmp + "/db" - -# Repo, arch, and other folders to use for repo -repo_list = ("core", "extra", "community", "testing", "community-testing", "multilib") -dir_list = ("pool","sources") -arch_list = ("i686", "x86_64") -other = ("any",) - -# Output -output = True -verbose = False - -# Files -blacklist = docs + "/blacklist.txt" -whitelist = docs + "/whitelist.txt" -pending = docs + "/pending" -rsyncBlacklist = docs + "/rsyncBlacklist" - -# ---------- Config Variables End Here---------- # def printf(text,output_=output): """Guarda el texto en la variable log y puede imprimir en pantalla.""" |