summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-07 17:38:33 -0600
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-07 17:38:33 -0600
commit937bf24bacdd29629b5efd2c949c0a6e4d17b163 (patch)
tree3e146ab4d001022778c0e6f37616565d2f79e2b3
parent44dc101393495d876a4fab40689c1d6c8b307c20 (diff)
Making hardlinks instead of symbolic
-rw-r--r--config.py2
-rw-r--r--pato2.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/config.py b/config.py
index df837d4..8a55cf7 100644
--- a/config.py
+++ b/config.py
@@ -8,10 +8,12 @@ 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"
diff --git a/pato2.py b/pato2.py
index 3ed57b2..cd08ca0 100644
--- a/pato2.py
+++ b/pato2.py
@@ -24,7 +24,7 @@
"""
-from repo_maintainer.config import *
+from repm.config import *
import tarfile, commands
from glob import glob
@@ -136,7 +136,7 @@ def remove_from_blacklist(repo_,arch_,info_,blacklist_):
def link(repo_,arch_,file_):
""" Makes a link in the repo for the package """
- cmd_="ln -sf " + file_ + " " + repodir + "/" + repo_ + "/os/" + arch_
+ cmd_="ln -f " + file_ + " " + repodir + "/" + repo_ + "/os/" + arch_
a=commands.getoutput(cmd_)
if verbose:
printf(cmd_ + a)