summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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_: