aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-05-27 09:28:43 +0100
committerColin Guthrie <colin@mageia.org>2014-05-27 09:28:43 +0100
commitcfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b (patch)
tree1c7dc346d9c8b7e62702c65a2a599961a638bcf5 /MgaRepo
parentd3fb381cf8b5c99e7526c9782180e8554c93ae71 (diff)
downloadmgarepo-cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b.tar
mgarepo-cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b.tar.gz
mgarepo-cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b.tar.bz2
mgarepo-cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b.tar.xz
mgarepo-cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b.zip
Use hardlinks when importing (can help speed up process for large SOURCES)
The cp command supports the -l option since Mageia 1 so it's fairly safe to use this.
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/rpmutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py
index f0d413b..325c0ce 100644
--- a/MgaRepo/rpmutil.py
+++ b/MgaRepo/rpmutil.py
@@ -244,8 +244,8 @@ def put_srpm(srpmfile, markrelease=False, striplog=True, branch=None,
svn.remove(entrypath)
# Copy all files
- execcmd("cp -rf", uspecsdir, currentdir)
- execcmd("cp -rf", usourcesdir, currentdir)
+ execcmd("cp -rlf", uspecsdir, currentdir)
+ execcmd("cp -rlf", usourcesdir, currentdir)
# Add new entries
for entry in [x for x in uspecsentries