summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-07 12:30:30 -0600
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-07 12:30:30 -0600
commita5872f3b259b97125089866169d06aa9a4d78e23 (patch)
tree0ca6a91aab7e71d122059450f81e799221798ea9
parentb8619985289cde1591aa40c7df2c948fdbb8c30a (diff)
moved config out from pato2
-rw-r--r--config.py32
-rw-r--r--pato2.py37
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"
diff --git a/pato2.py b/pato2.py
index cf40809..3ed57b2 100644
--- a/pato2.py
+++ b/pato2.py
@@ -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."""