diff options
-rw-r--r-- | config.py | 4 | ||||
-rw-r--r-- | pato2.py | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -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") @@ -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_: |