aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--CHANGES1
-rw-r--r--MgaRepo/rpmutil.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 7e4666a..0e15ed4 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,4 @@
+- Use hardlinks when importing (can help speed up process for large SOURCES)
- Added aliases for commit (ci) and checkout (co)
* 1.10.6
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