summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-07 20:44:28 -0600
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-07 20:44:28 -0600
commit56194edbc8715f4b5ac94591621dbdce294f5729 (patch)
tree1ce00031ac7a83159b74caaf92cce9a0e77c4ef9
parent937bf24bacdd29629b5efd2c949c0a6e4d17b163 (diff)
parent317c0b412642b5268e8408f9d87e19261370cd32 (diff)
Fixed details for repo-maintainer to run on server
-rw-r--r--config.py4
-rw-r--r--pato2.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/config.py b/config.py
index 8a55cf7..223257d 100644
--- a/config.py
+++ b/config.py
@@ -1,5 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
+from user import home
+import commands
time__ = commands.getoutput("date +%Y%m%d-%H:%M")
@@ -20,6 +22,8 @@ repodir= path + "/repo"
tmp = home + "/tmp"
archdb = tmp + "/db"
+free_path= path + "/free/"
+
# Repo, arch, and other folders to use for repo
repo_list = ("core", "extra", "community", "testing", "community-testing", "multilib")
dir_list = ("pool","sources")
diff --git a/pato2.py b/pato2.py
index cd08ca0..dd32403 100644
--- a/pato2.py
+++ b/pato2.py
@@ -145,11 +145,11 @@ def add_free_repo(verbose_=verbose):
for repo_ in repo_list:
for arch_ in arch_list:
lista_=list()
- for file_ in glob(repodir + "/free/" + repo_ + "/os/" + arch_ + "/*"):
+ for file_ in glob(free_path + repo_ + "/os/" + arch_ + "/*"):
lista_.append(file_)
link(repo_,arch_,file_)
for dir_ in other:
- for file_ in glob(repodir + "/free/" + repo_ + "/os/" + dir_ + "/*"):
+ for file_ in glob(free_path + repo_ + "/os/" + dir_ + "/*"):
lista_.append(file_)
link(repo_,arch_,file_)
if lista_: